Support self-explanatory icon for PLAY TONE command
ETSI TS 102 384 TC 27.22.4.5.3 fails because it is expected to display
the self-explanatory icon without the alpha identifier.
TextMessage propagates the self-explanatory option specified by PLAY
TONE command, but ToneDialog does not consider it. If the icon is self-
explanatory, it should replace the alpha identifer.
Bug: 30007740
Change-Id: I945f6456a519551c57115deb0a5335f8707bb8a4
diff --git a/src/com/android/stk/ToneDialog.java b/src/com/android/stk/ToneDialog.java
old mode 100644
new mode 100755
index 57a977d..834d575
--- a/src/com/android/stk/ToneDialog.java
+++ b/src/com/android/stk/ToneDialog.java
@@ -95,6 +95,10 @@
iv.setImageBitmap(toneMsg.icon);
}
+ if (toneMsg.iconSelfExplanatory && toneMsg.icon != null) {
+ tv.setVisibility(View.GONE);
+ }
+
// Start playing tone and vibration
if (null == settings) {
CatLog.d(LOG_TAG, "onCreate - null settings - finish");