summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Daniel Sandler <dsandler@android.com> 2011-09-27 13:08:54 -0700
committer Android Git Automerger <android-git-automerger@android.com> 2011-09-27 13:08:54 -0700
commit097a35b4410b95d0bde409f7687b49fe6d705181 (patch)
treec6ee132f2d87433b0113693c6f2e310f10dffe87
parent53a7af36f52496311b25d7beb0811b3cf5541050 (diff)
parent25bb73eb1bc16921cc013b9b150c2d440d650c39 (diff)
am 25bb73eb: Merge "Remove "excessive sync" icon." into ics-factoryrom
* commit '25bb73eb1bc16921cc013b9b150c2d440d650c39': Remove "excessive sync" icon.
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java3
1 files changed, 3 insertions, 0 deletions
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 05e171c1c07c..9bee5dfca017 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java
@@ -64,6 +64,8 @@ public class PhoneStatusBarPolicy {
private static final int INET_CONDITION_THRESHOLD = 50;
+ private static final boolean SHOW_SYNC_ICON = false;
+
private final Context mContext;
private final StatusBarManager mService;
private final Handler mHandler = new Handler();
@@ -195,6 +197,7 @@ public class PhoneStatusBarPolicy {
}
private final void updateSyncState(Intent intent) {
+ if (!SHOW_SYNC_ICON) return;
boolean isActive = intent.getBooleanExtra("active", false);
boolean isFailing = intent.getBooleanExtra("failing", false);
mService.setIconVisibility("sync_active", isActive);