From d5483c3157a28e2ebc05a0c918df8a2be0a7fc89 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Fri, 19 Oct 2012 16:44:15 -0400 Subject: New lockscreen: allow search gesture from nav bar. Show a lights-out pip if home is invisible but search is still OK. Change-Id: Ifc69c12296cc8e8cf7c89dd06173d7abf499a878 --- .../SystemUI/res/layout-sw600dp/navigation_bar.xml | 20 ++++++++++++++++++++ packages/SystemUI/res/layout/navigation_bar.xml | 20 ++++++++++++++++++++ .../src/com/android/systemui/SearchPanelView.java | 11 +++++++++++ .../systemui/statusbar/DelegateViewHelper.java | 2 +- .../systemui/statusbar/phone/NavigationBarView.java | 8 ++++++++ .../systemui/statusbar/phone/PhoneStatusBar.java | 15 ++++++++++++--- 6 files changed, 72 insertions(+), 4 deletions(-) (limited to 'packages') diff --git a/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml b/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml index fbbd7e5..afa4cfc 100644 --- a/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml +++ b/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml @@ -141,6 +141,16 @@ /> + + + + + + + + "); Slog.d(TAG, flagdbg.toString()); @@ -1216,7 +1222,8 @@ public class PhoneStatusBar extends BaseStatusBar { if ((diff & (StatusBarManager.DISABLE_HOME | StatusBarManager.DISABLE_RECENT - | StatusBarManager.DISABLE_BACK)) != 0) { + | StatusBarManager.DISABLE_BACK + | StatusBarManager.DISABLE_SEARCH)) != 0) { // the nav bar will take care of these if (mNavigationBarView != null) mNavigationBarView.setDisabledFlags(state); @@ -2416,7 +2423,9 @@ public class PhoneStatusBar extends BaseStatusBar { @Override protected boolean shouldDisableNavbarGestures() { - return mExpandedVisible || (mDisabled & StatusBarManager.DISABLE_HOME) != 0; + return !isDeviceProvisioned() + || mExpandedVisible + || (mDisabled & StatusBarManager.DISABLE_SEARCH) != 0; } private static class FastColorDrawable extends Drawable { -- cgit v1.1