diff options
author | John Spurlock <jspurlock@google.com> | 2015-01-07 11:22:01 -0500 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2015-01-07 11:36:32 -0500 |
commit | f55bb573b2ada6e760f9d2b69e81fbcdaf11f598 (patch) | |
tree | 9b50d328a20d1495cc23c47237202bffe1a4b24b /packages | |
parent | 6746cf096b1a2f342ce81fce77a77dff01981e80 (diff) | |
download | frameworks_base-f55bb573b2ada6e760f9d2b69e81fbcdaf11f598.zip frameworks_base-f55bb573b2ada6e760f9d2b69e81fbcdaf11f598.tar.gz frameworks_base-f55bb573b2ada6e760f9d2b69e81fbcdaf11f598.tar.bz2 |
Remove two obsolete status bar icons.
Change-Id: I054d90044b889642ae3ba7affce71304ca44ca8d
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/res/drawable-hdpi/stat_sys_roaming_cdma_0.png | bin | 796 -> 0 bytes | |||
-rw-r--r-- | packages/SystemUI/res/drawable-hdpi/stat_sys_sync.png | bin | 1009 -> 0 bytes | |||
-rw-r--r-- | packages/SystemUI/res/drawable-mdpi/stat_sys_roaming_cdma_0.png | bin | 660 -> 0 bytes | |||
-rw-r--r-- | packages/SystemUI/res/drawable-mdpi/stat_sys_sync.png | bin | 728 -> 0 bytes | |||
-rw-r--r-- | packages/SystemUI/res/drawable-xhdpi/stat_sys_roaming_cdma_0.png | bin | 1109 -> 0 bytes | |||
-rw-r--r-- | packages/SystemUI/res/drawable-xhdpi/stat_sys_sync.png | bin | 1327 -> 0 bytes | |||
-rw-r--r-- | packages/SystemUI/res/drawable-xxhdpi/stat_sys_roaming_cdma_0.png | bin | 1771 -> 0 bytes | |||
-rw-r--r-- | packages/SystemUI/res/drawable-xxhdpi/stat_sys_sync.png | bin | 1973 -> 0 bytes | |||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/DemoStatusIcons.java | 12 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java | 23 |
10 files changed, 0 insertions, 35 deletions
diff --git a/packages/SystemUI/res/drawable-hdpi/stat_sys_roaming_cdma_0.png b/packages/SystemUI/res/drawable-hdpi/stat_sys_roaming_cdma_0.png Binary files differdeleted file mode 100644 index 8f17b72..0000000 --- a/packages/SystemUI/res/drawable-hdpi/stat_sys_roaming_cdma_0.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable-hdpi/stat_sys_sync.png b/packages/SystemUI/res/drawable-hdpi/stat_sys_sync.png Binary files differdeleted file mode 100644 index 2dc2b17..0000000 --- a/packages/SystemUI/res/drawable-hdpi/stat_sys_sync.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable-mdpi/stat_sys_roaming_cdma_0.png b/packages/SystemUI/res/drawable-mdpi/stat_sys_roaming_cdma_0.png Binary files differdeleted file mode 100644 index cb38896..0000000 --- a/packages/SystemUI/res/drawable-mdpi/stat_sys_roaming_cdma_0.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable-mdpi/stat_sys_sync.png b/packages/SystemUI/res/drawable-mdpi/stat_sys_sync.png Binary files differdeleted file mode 100644 index ad5b2ff..0000000 --- a/packages/SystemUI/res/drawable-mdpi/stat_sys_sync.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable-xhdpi/stat_sys_roaming_cdma_0.png b/packages/SystemUI/res/drawable-xhdpi/stat_sys_roaming_cdma_0.png Binary files differdeleted file mode 100644 index f0c2f05..0000000 --- a/packages/SystemUI/res/drawable-xhdpi/stat_sys_roaming_cdma_0.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable-xhdpi/stat_sys_sync.png b/packages/SystemUI/res/drawable-xhdpi/stat_sys_sync.png Binary files differdeleted file mode 100644 index 75b002d..0000000 --- a/packages/SystemUI/res/drawable-xhdpi/stat_sys_sync.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable-xxhdpi/stat_sys_roaming_cdma_0.png b/packages/SystemUI/res/drawable-xxhdpi/stat_sys_roaming_cdma_0.png Binary files differdeleted file mode 100644 index 1c544c4..0000000 --- a/packages/SystemUI/res/drawable-xxhdpi/stat_sys_roaming_cdma_0.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable-xxhdpi/stat_sys_sync.png b/packages/SystemUI/res/drawable-xxhdpi/stat_sys_sync.png Binary files differdeleted file mode 100644 index 99b2fff..0000000 --- a/packages/SystemUI/res/drawable-xxhdpi/stat_sys_sync.png +++ /dev/null diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/DemoStatusIcons.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/DemoStatusIcons.java index 6cb5bcc..44168bc 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/DemoStatusIcons.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/DemoStatusIcons.java @@ -90,24 +90,12 @@ public class DemoStatusIcons extends LinearLayout implements DemoMode { : 0; updateSlot("alarm_clock", null, iconId); } - String sync = args.getString("sync"); - if (sync != null) { - int iconId = sync.equals("show") ? R.drawable.stat_sys_sync - : 0; - updateSlot("sync_active", null, iconId); - } String tty = args.getString("tty"); if (tty != null) { int iconId = tty.equals("show") ? R.drawable.stat_sys_tty_mode : 0; updateSlot("tty", null, iconId); } - String eri = args.getString("eri"); - if (eri != null) { - int iconId = eri.equals("show") ? R.drawable.stat_sys_roaming_cdma_0 - : 0; - updateSlot("cdma_eri", null, iconId); - } String mute = args.getString("mute"); if (mute != null) { int iconId = mute.equals("show") ? android.R.drawable.stat_notify_call_mute diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java index 422378b..e8a000c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java @@ -46,16 +46,12 @@ public class PhoneStatusBarPolicy { private static final String TAG = "PhoneStatusBarPolicy"; private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG); - private static final boolean SHOW_SYNC_ICON = false; - - private static final String SLOT_SYNC_ACTIVE = "sync_active"; private static final String SLOT_CAST = "cast"; private static final String SLOT_HOTSPOT = "hotspot"; private static final String SLOT_BLUETOOTH = "bluetooth"; private static final String SLOT_TTY = "tty"; private static final String SLOT_ZEN = "zen"; private static final String SLOT_VOLUME = "volume"; - private static final String SLOT_CDMA_ERI = "cdma_eri"; private static final String SLOT_ALARM_CLOCK = "alarm_clock"; private final Context mContext; @@ -83,9 +79,6 @@ public class PhoneStatusBarPolicy { if (action.equals(AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED)) { updateAlarm(); } - else if (action.equals(Intent.ACTION_SYNC_STATE_CHANGED)) { - updateSyncState(intent); - } else if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED) || action.equals(BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED)) { updateBluetooth(); @@ -115,7 +108,6 @@ public class PhoneStatusBarPolicy { // listen for broadcasts IntentFilter filter = new IntentFilter(); filter.addAction(AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED); - filter.addAction(Intent.ACTION_SYNC_STATE_CHANGED); filter.addAction(AudioManager.RINGER_MODE_CHANGED_ACTION); filter.addAction(AudioManager.INTERNAL_RINGER_MODE_CHANGED_ACTION); filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED); @@ -129,10 +121,6 @@ public class PhoneStatusBarPolicy { mService.setIcon(SLOT_TTY, R.drawable.stat_sys_tty_mode, 0, null); mService.setIconVisibility(SLOT_TTY, false); - // Cdma Roaming Indicator, ERI - mService.setIcon(SLOT_CDMA_ERI, R.drawable.stat_sys_roaming_cdma_0, 0, null); - mService.setIconVisibility(SLOT_CDMA_ERI, false); - // bluetooth status updateBluetooth(); @@ -140,11 +128,6 @@ public class PhoneStatusBarPolicy { mService.setIcon(SLOT_ALARM_CLOCK, R.drawable.stat_sys_alarm, 0, null); mService.setIconVisibility(SLOT_ALARM_CLOCK, false); - // Sync state - mService.setIcon(SLOT_SYNC_ACTIVE, R.drawable.stat_sys_sync, 0, null); - mService.setIconVisibility(SLOT_SYNC_ACTIVE, false); - // "sync_failing" is obsolete: b/1297963 - // zen mService.setIcon(SLOT_ZEN, R.drawable.stat_sys_zen_important, 0, null); mService.setIconVisibility(SLOT_ZEN, false); @@ -176,12 +159,6 @@ public class PhoneStatusBarPolicy { mService.setIconVisibility(SLOT_ALARM_CLOCK, alarmSet); } - private final void updateSyncState(Intent intent) { - if (!SHOW_SYNC_ICON) return; - boolean isActive = intent.getBooleanExtra("active", false); - mService.setIconVisibility(SLOT_SYNC_ACTIVE, isActive); - } - private final void updateSimState(Intent intent) { String stateExtra = intent.getStringExtra(IccCardConstants.INTENT_KEY_ICC_STATE); if (IccCardConstants.INTENT_VALUE_ICC_ABSENT.equals(stateExtra)) { |