summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2012-11-30 10:09:16 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-11-30 10:09:16 -0800
commit590e0e5b8dbc1f9d9bef69d675b158d6a36ac073 (patch)
tree9d893784805650e19d589a138d4be4bac99b47ba /packages
parent63c84b75e41b62cab9c87991810bd49e49bd50cd (diff)
parent5dde83c4d1e9b3c39f0dbba07421a7dcf678a4cf (diff)
downloadframeworks_base-590e0e5b8dbc1f9d9bef69d675b158d6a36ac073.zip
frameworks_base-590e0e5b8dbc1f9d9bef69d675b158d6a36ac073.tar.gz
frameworks_base-590e0e5b8dbc1f9d9bef69d675b158d6a36ac073.tar.bz2
am 5dde83c4: am 0a6620e8: Merge "Suppress quick settings if setup has not been completed." into jb-mr1.1-dev
* commit '5dde83c4d1e9b3c39f0dbba07421a7dcf678a4cf': Suppress quick settings if setup has not been completed.
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
index 7371ce2..30af333 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -298,7 +298,7 @@ public class PhoneStatusBar extends BaseStatusBar {
if (MULTIUSER_DEBUG) Slog.d(TAG, String.format("User setup changed: " +
"selfChange=%s userSetup=%s mUserSetup=%s",
selfChange, userSetup, mUserSetup));
- if (mSettingsButton != null && !mHasSettingsPanel) {
+ if (mSettingsButton != null && mHasFlipSettings) {
mSettingsButton.setVisibility(userSetup ? View.VISIBLE : View.INVISIBLE);
}
if (mSettingsPanel != null) {
@@ -1488,6 +1488,9 @@ public class PhoneStatusBar extends BaseStatusBar {
return;
}
+ // Settings are not available in setup
+ if (!mUserSetup) return;
+
if (mHasFlipSettings) {
mNotificationPanel.expand();
if (mFlipSettingsView.getVisibility() != View.VISIBLE) {
@@ -1501,6 +1504,9 @@ public class PhoneStatusBar extends BaseStatusBar {
}
public void switchToSettings() {
+ // Settings are not available in setup
+ if (!mUserSetup) return;
+
mFlipSettingsView.setScaleX(1f);
mFlipSettingsView.setVisibility(View.VISIBLE);
mSettingsButton.setVisibility(View.GONE);
@@ -1512,6 +1518,9 @@ public class PhoneStatusBar extends BaseStatusBar {
}
public void flipToSettings() {
+ // Settings are not available in setup
+ if (!mUserSetup) return;
+
if (mFlipSettingsViewAnim != null) mFlipSettingsViewAnim.cancel();
if (mScrollViewAnim != null) mScrollViewAnim.cancel();
if (mSettingsButtonAnim != null) mSettingsButtonAnim.cancel();