diff options
author | twyen <twyen@google.com> | 2017-09-08 11:10:16 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-09-11 13:49:27 -0700 |
commit | bf900241b71a4a594ce989bf0d18ada1d5fadb56 (patch) | |
tree | 3e6418fc85a41ccfb06b362f39f462485061e80d /java/com/android/voicemail/impl/sms/LegacyModeSmsHandler.java | |
parent | 9295405d7cdc6e97bbebce485710aafb8704c198 (diff) |
Send PhoneAccountHandle with ACTION_CONFIGURE_VOICEMAIL
When opening a voicemail setting from Dialer with
ACTION_CONFIGURE_VOICEMAIL, no subId is passed.
So on a multi-SIM device, it is always configuration on the default
phone regardless of SIM.
To solve this, set the PhoneAccountHandle to intent extra for
ACTION_CONFIGURE_VOICEMAIL. In the advanced settings, obtains subId
from the PhoneAccountHandle.
Test: manual - Checked that correct PhoneAccountHandle will be passed
with ACTION_CONFIGURE_VOICEMAIL intent
Bug: 65001008
Author: xuegang.x.liu <xuegang.x.liu@sony.com>
Bug: 65001008
Test: manual - Checked that correct PhoneAccountHandle will be passed
PiperOrigin-RevId: 168019873
Change-Id: I8578dd2c4ac24e4af121a90b2b175baae2832461
Diffstat (limited to 'java/com/android/voicemail/impl/sms/LegacyModeSmsHandler.java')
-rw-r--r-- | java/com/android/voicemail/impl/sms/LegacyModeSmsHandler.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/com/android/voicemail/impl/sms/LegacyModeSmsHandler.java b/java/com/android/voicemail/impl/sms/LegacyModeSmsHandler.java index e902825c0..d55e3b5ae 100644 --- a/java/com/android/voicemail/impl/sms/LegacyModeSmsHandler.java +++ b/java/com/android/voicemail/impl/sms/LegacyModeSmsHandler.java @@ -101,6 +101,8 @@ public class LegacyModeSmsHandler { Intent launchVoicemailSettingsIntent = new Intent(TelephonyManager.ACTION_CONFIGURE_VOICEMAIL); launchVoicemailSettingsIntent.putExtra(TelephonyManager.EXTRA_HIDE_PUBLIC_SETTINGS, true); + launchVoicemailSettingsIntent.putExtra( + TelephonyManager.EXTRA_PHONE_ACCOUNT_HANDLE, phoneAccountHandle); launchVoicemailSettingsPendingIntent = PendingIntent.getActivity( |