OSDN Git Service

Remove unused status bar icon stat_sys_secure.
authorJohn Spurlock <jspurlock@google.com>
Tue, 3 Sep 2013 16:04:38 +0000 (12:04 -0400)
committerJohn Spurlock <jspurlock@google.com>
Tue, 3 Sep 2013 16:04:38 +0000 (12:04 -0400)
It was moved behind an undocumented setting three yrs ago.

Bug:10502089
Change-Id: Icef0e3deaa9b09afab98bbb76520b47a16da2069

core/res/res/drawable-hdpi/stat_sys_secure.png [deleted file]
core/res/res/drawable-ldpi/stat_sys_secure.png [deleted file]
core/res/res/drawable-mdpi/stat_sys_secure.png [deleted file]
core/res/res/drawable-xhdpi/stat_sys_secure.png [deleted file]
core/res/res/drawable-xxhdpi/stat_sys_secure.png [deleted file]
core/res/res/values/strings.xml
core/res/res/values/symbols.xml
packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java

diff --git a/core/res/res/drawable-hdpi/stat_sys_secure.png b/core/res/res/drawable-hdpi/stat_sys_secure.png
deleted file mode 100644 (file)
index 5e979db..0000000
Binary files a/core/res/res/drawable-hdpi/stat_sys_secure.png and /dev/null differ
diff --git a/core/res/res/drawable-ldpi/stat_sys_secure.png b/core/res/res/drawable-ldpi/stat_sys_secure.png
deleted file mode 100644 (file)
index 096aa95..0000000
Binary files a/core/res/res/drawable-ldpi/stat_sys_secure.png and /dev/null differ
diff --git a/core/res/res/drawable-mdpi/stat_sys_secure.png b/core/res/res/drawable-mdpi/stat_sys_secure.png
deleted file mode 100644 (file)
index da3e318..0000000
Binary files a/core/res/res/drawable-mdpi/stat_sys_secure.png and /dev/null differ
diff --git a/core/res/res/drawable-xhdpi/stat_sys_secure.png b/core/res/res/drawable-xhdpi/stat_sys_secure.png
deleted file mode 100644 (file)
index bef2fd7..0000000
Binary files a/core/res/res/drawable-xhdpi/stat_sys_secure.png and /dev/null differ
diff --git a/core/res/res/drawable-xxhdpi/stat_sys_secure.png b/core/res/res/drawable-xxhdpi/stat_sys_secure.png
deleted file mode 100755 (executable)
index 07c27cb..0000000
Binary files a/core/res/res/drawable-xxhdpi/stat_sys_secure.png and /dev/null differ
index 4b32e2b..3c38d53 100644 (file)
     <!-- Title for a dialog showing possible activities for sharing in ShareActionProvider [CHAR LIMIT=25] -->
     <string name="share_action_provider_share_with">Share with</string>
 
-    <!-- Status Bar icon descriptions -->
-
-    <!-- Description of for the status bar's icon that the device is locked for accessibility. [CHAR LIMIT=NONE] -->
-    <string name="status_bar_device_locked">Device locked.</string>
-
     <!-- Delimeter used between each item in a textual list; for example "Alpha, Beta". [CHAR LIMIT=3] -->
     <string name="list_delimeter">", "</string>
 
index f008b10..4d6776c 100644 (file)
   <java-symbol type="drawable" name="jog_tab_target_yellow" />
   <java-symbol type="drawable" name="magnified_region_frame" />
   <java-symbol type="drawable" name="menu_background" />
-  <java-symbol type="drawable" name="stat_sys_secure" />
   <java-symbol type="id" name="action_mode_bar_stub" />
   <java-symbol type="id" name="button0" />
   <java-symbol type="id" name="button4" />
   <java-symbol type="string" name="global_action_toggle_silent_mode" />
   <java-symbol type="string" name="invalidPuk" />
   <java-symbol type="string" name="lockscreen_carrier_default" />
-  <java-symbol type="string" name="status_bar_device_locked" />
   <java-symbol type="style" name="Animation.LockScreen" />
   <java-symbol type="style" name="Theme.Dialog.RecentApplications" />
   <java-symbol type="style" name="Theme.ExpandedMenu" />
index 597fb3b..e746f72 100644 (file)
@@ -153,8 +153,6 @@ public class KeyguardViewMediator {
     private AlarmManager mAlarmManager;
     private AudioManager mAudioManager;
     private StatusBarManager mStatusBarManager;
-    private boolean mShowLockIcon;
-    private boolean mShowingLockIcon;
     private boolean mSwitchingUser;
 
     private boolean mSystemReady;
@@ -494,7 +492,6 @@ public class KeyguardViewMediator {
                 mLockPatternUtils);
 
         final ContentResolver cr = mContext.getContentResolver();
-        mShowLockIcon = (Settings.System.getInt(cr, "show_status_bar_lock", 0) == 1);
 
         mScreenOn = mPM.isScreenOn();
 
@@ -1227,25 +1224,6 @@ public class KeyguardViewMediator {
         if (mStatusBarManager == null) {
             Log.w(TAG, "Could not get status bar manager");
         } else {
-            if (mShowLockIcon) {
-                // Give feedback to user when secure keyguard is active and engaged
-                if (mShowing && isSecure()) {
-                    if (!mShowingLockIcon) {
-                        String contentDescription = mContext.getString(
-                                com.android.internal.R.string.status_bar_device_locked);
-                        mStatusBarManager.setIcon("secure",
-                                com.android.internal.R.drawable.stat_sys_secure, 0,
-                                contentDescription);
-                        mShowingLockIcon = true;
-                    }
-                } else {
-                    if (mShowingLockIcon) {
-                        mStatusBarManager.removeIcon("secure");
-                        mShowingLockIcon = false;
-                    }
-                }
-            }
-
             // Disable aspects of the system/status/navigation bars that must not be re-enabled by
             // windows that appear on top, ever
             int flags = StatusBarManager.DISABLE_NONE;