Loading src/com/android/dialer/SpecialCharSequenceMgr.java +2 −3 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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#"; Loading Loading @@ -136,7 +135,7 @@ public class SpecialCharSequenceMgr { // Secret codes are in the form *#*#<code>#*#* 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; Loading Loading
src/com/android/dialer/SpecialCharSequenceMgr.java +2 −3 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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#"; Loading Loading @@ -136,7 +135,7 @@ public class SpecialCharSequenceMgr { // Secret codes are in the form *#*#<code>#*#* 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; Loading