aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhishek G <agilra@cyngn.com>2016-05-03 18:20:12 -0700
committerMichael Bestas <mikeioannina@gmail.com>2017-01-07 01:41:44 +0200
commitcd7c37f32a2edf59ce0cd81faa620494b3d949eb (patch)
tree5eeaa65342128c2266f1b67d4f0938bb14afeae4
parentb63d2e9bbeb401249cbd14369853a7fd7ce3f8b0 (diff)
downloadandroid_frameworks_opt_telephony-cd7c37f32a2edf59ce0cd81faa620494b3d949eb.tar.gz
android_frameworks_opt_telephony-cd7c37f32a2edf59ce0cd81faa620494b3d949eb.tar.bz2
android_frameworks_opt_telephony-cd7c37f32a2edf59ce0cd81faa620494b3d949eb.zip
Single digit MMI codes cause CTS to fail
Single digit MMI codes are invalid. These result in a notification which interferes with UI tests during CTS. Turning this notification into a toast message for when a single digit MMI code is dialed from idle. Note that single digit codes are valid from within a call. Change-Id: I9aa239d38573d070c9b7a8f86424a99162ddd57e Issue-Id: FEIJ-142
-rw-r--r--src/java/com/android/internal/telephony/gsm/GsmMmiCode.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/com/android/internal/telephony/gsm/GsmMmiCode.java b/src/java/com/android/internal/telephony/gsm/GsmMmiCode.java
index 27a54d51a..30c9f161f 100644
--- a/src/java/com/android/internal/telephony/gsm/GsmMmiCode.java
+++ b/src/java/com/android/internal/telephony/gsm/GsmMmiCode.java
@@ -31,6 +31,7 @@ import android.text.TextDirectionHeuristics;
import android.text.TextUtils;
import android.telephony.Rlog;
import android.util.Log;
+import android.widget.Toast;
import static com.android.internal.telephony.CommandsInterface.*;
import com.android.internal.telephony.gsm.SsData;
@@ -1127,6 +1128,10 @@ public final class GsmMmiCode extends Handler implements MmiCode {
LOG_TAG,
mContext.getText(com.android.internal.R.string.mmiError).toString()
);
+ Toast.makeText(
+ mContext,
+ mContext.getText(com.android.internal.R.string.mmiError).toString(),
+ Toast.LENGTH_SHORT).show();
} else {
mMessage = getErrorMessage(ar);
}