diff options
author | Jason Monk <jmonk@google.com> | 2015-01-08 11:12:39 -0500 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2015-01-08 11:12:39 -0500 |
commit | b36becff0831e48e208495a2c4ccf1a7330aeb58 (patch) | |
tree | 6aeb5aee0ab1f980eccd7d37cbde5ef756e82acf /packages/SystemUI/src/com/android/systemui/qs | |
parent | 6cfb44952a76303fe1c7cc75b545cb8aad72eecf (diff) | |
download | frameworks_base-b36becff0831e48e208495a2c4ccf1a7330aeb58.zip frameworks_base-b36becff0831e48e208495a2c4ccf1a7330aeb58.tar.gz frameworks_base-b36becff0831e48e208495a2c4ccf1a7330aeb58.tar.bz2 |
Avoid showing emergency calls when not possible
Tablets aren't phones, so we shouldn't be showing an emergency calls
only message when in airplane mode or no sims are in them.
Bug: 18897573
Change-Id: I8cf31fe73dfd6dfd672a5ee58524815475a76c9c
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/tiles/CellularTile.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/CellularTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/CellularTile.java index f2ebcf6..ddb96a2 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/CellularTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/CellularTile.java @@ -184,6 +184,11 @@ public class CellularTile extends QSTile<QSTile.SignalState> { // Make sure signal gets cleared out when no sims. mInfo.mobileSignalIconId = 0; mInfo.dataTypeIconId = 0; + // Show a No SIMs description to avoid emergency calls message. + mInfo.enabled = true; + mInfo.enabledDesc = mContext.getString( + R.string.keyguard_missing_sim_message_short); + mInfo.signalContentDescription = mInfo.enabledDesc; } refreshState(mInfo); } |