diff options
author | Jeff Sharkey <jsharkey@android.com> | 2014-04-16 17:21:12 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2014-04-28 08:54:59 -0700 |
commit | f4f47665942b34a1bab272b84f223bb06825a57f (patch) | |
tree | 71bb4b70974cfb9526f73e1ffdd1088cd429d275 /src | |
parent | 9d1ed1745b95f4ad5b75fe872683e044c41b40c8 (diff) |
Allow OEM to provide regulatory info.
Relaxing the component name allows an OEM app to provide the
regulatory info.
Bug: 13340779
Change-Id: Ie6bc5c5a68e6203e2a8c9a108298779175fcbc42
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/SpecialCharSequenceMgr.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/dialer/SpecialCharSequenceMgr.java b/src/com/android/dialer/SpecialCharSequenceMgr.java index 0b44facd8..9d622aa16 100644 --- a/src/com/android/dialer/SpecialCharSequenceMgr.java +++ b/src/com/android/dialer/SpecialCharSequenceMgr.java @@ -30,6 +30,7 @@ import android.net.Uri; import android.os.Looper; import android.os.RemoteException; import android.os.ServiceManager; +import android.provider.Settings; import android.telephony.PhoneNumberUtils; import android.telephony.TelephonyManager; import android.util.Log; @@ -258,10 +259,7 @@ public class SpecialCharSequenceMgr { private static boolean handleRegulatoryInfoDisplay(Context context, String input) { if (input.equals(MMI_REGULATORY_INFO_DISPLAY)) { Log.d(TAG, "handleRegulatoryInfoDisplay() sending intent to settings app"); - ComponentName regInfoDisplayActivity = new ComponentName( - "com.android.settings", "com.android.settings.RegulatoryInfoDisplayActivity"); - Intent showRegInfoIntent = new Intent("android.settings.SHOW_REGULATORY_INFO"); - showRegInfoIntent.setComponent(regInfoDisplayActivity); + Intent showRegInfoIntent = new Intent(Settings.ACTION_SHOW_REGULATORY_INFO); try { context.startActivity(showRegInfoIntent); } catch (ActivityNotFoundException e) { |