Allow OEM to provide regulatory info.
Relaxing the component name allows an OEM app to provide the
regulatory info.
Bug: 13340779
Change-Id: Ie6bc5c5a68e6203e2a8c9a108298779175fcbc42
diff --git a/src/com/android/dialer/SpecialCharSequenceMgr.java b/src/com/android/dialer/SpecialCharSequenceMgr.java
index 0b44fac..9d622aa 100644
--- a/src/com/android/dialer/SpecialCharSequenceMgr.java
+++ b/src/com/android/dialer/SpecialCharSequenceMgr.java
@@ -30,6 +30,7 @@
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 @@
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) {