Permalink
Browse files

Use TelephonyIntents - DO NOT MERGE

Change-Id: Icdc392722db2b2adf294ea277b7c174e7323ea75
  • Loading branch information...
1 parent 3e0d206 commit 95e1b1a34e0c97e313a351d902d46d9ee571f511 Wink Saville committed with Jean-Baptiste Queru Jun 13, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 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 @@ else if (Intent.ACTION_PACKAGE_ADDED.equals(action) ||
}
// 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();
}

0 comments on commit 95e1b1a

Please sign in to comment.