Use TelephonyIntents - DO NOT MERGE
Change-Id: Icdc392722db2b2adf294ea277b7c174e7323ea75
diff --git a/src/com/android/voicedialer/VoiceDialerReceiver.java b/src/com/android/voicedialer/VoiceDialerReceiver.java
index 7ba1177..e6bfd1c 100644
--- a/src/com/android/voicedialer/VoiceDialerReceiver.java
+++ b/src/com/android/voicedialer/VoiceDialerReceiver.java
@@ -20,7 +20,7 @@
import android.content.Context;
import android.content.Intent;
import android.content.BroadcastReceiver;
-import android.provider.Telephony.Intents;
+import com.android.internal.telephony.TelephonyIntents;
import android.util.Log;
import android.widget.Toast;
@@ -50,13 +50,13 @@
}
// Voice Dialer Logging Enabled, *#*#8351#*#*
- else if (Intents.SECRET_CODE_ACTION.equals(action) && "8351".equals(host)) {
+ else if (TelephonyIntents.SECRET_CODE_ACTION.equals(action) && "8351".equals(host)) {
RecognizerLogger.enable(context);
Toast.makeText(context, R.string.logging_enabled, Toast.LENGTH_LONG).show();
}
// Voice Dialer Logging Disabled, *#*#8350#*#*
- else if (Intents.SECRET_CODE_ACTION.equals(action) && "8350".equals(host)) {
+ else if (TelephonyIntents.SECRET_CODE_ACTION.equals(action) && "8350".equals(host)) {
RecognizerLogger.disable(context);
Toast.makeText(context, R.string.logging_disabled, Toast.LENGTH_LONG).show();
}