Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
Merge commit 'c9c190c2' into mit
Browse files Browse the repository at this point in the history
* commit 'c9c190c2':
  Use TelephonyIntents
  • Loading branch information
Wink Saville committed Jul 12, 2012
2 parents eebfc84 + c9c190c commit 037988e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/com/android/voicedialer/VoiceDialerReceiver.java
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 037988e

Please sign in to comment.