From f90dadaf0e46463e4ff24ad4267981b7196fe96f Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 9 Dec 2013 11:50:28 -0800 Subject: Remove private reference to TelephonyIntents.SECRET_CODE_ACTION Bug: 6948882 Change-Id: Id08daec677abddf1c1987ac3f41dbefe89a10144 --- src/com/android/dialer/SpecialCharSequenceMgr.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/com/android/dialer/SpecialCharSequenceMgr.java b/src/com/android/dialer/SpecialCharSequenceMgr.java index f4f818afc..0b44facd8 100644 --- a/src/com/android/dialer/SpecialCharSequenceMgr.java +++ b/src/com/android/dialer/SpecialCharSequenceMgr.java @@ -39,8 +39,6 @@ import android.widget.Toast; import com.android.contacts.common.database.NoNullCursorAsyncQueryHandler; import com.android.internal.telephony.ITelephony; -import com.android.internal.telephony.TelephonyCapabilities; -import com.android.internal.telephony.TelephonyIntents; /** * Helper class to listen for some magic character sequences @@ -57,6 +55,7 @@ import com.android.internal.telephony.TelephonyIntents; public class SpecialCharSequenceMgr { private static final String TAG = "SpecialCharSequenceMgr"; + private static final String SECRET_CODE_ACTION = "android.provider.Telephony.SECRET_CODE"; private static final String MMI_IMEI_DISPLAY = "*#06#"; private static final String MMI_REGULATORY_INFO_DISPLAY = "*#07#"; @@ -136,7 +135,7 @@ public class SpecialCharSequenceMgr { // Secret codes are in the form *#*##*#* int len = input.length(); if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { - Intent intent = new Intent(TelephonyIntents.SECRET_CODE_ACTION, + final Intent intent = new Intent(SECRET_CODE_ACTION, Uri.parse("android_secret_code://" + input.substring(4, len - 4))); context.sendBroadcast(intent); return true; -- cgit v1.2.3