diff options
| author | 2011-01-25 13:42:10 -0800 | |
|---|---|---|
| committer | 2011-01-26 10:32:18 -0800 | |
| commit | 55bf3809b98dad0b8268804e684d63ea59124148 (patch) | |
| tree | 923efd45edc8354265fbb95eecd3538f48531da5 | |
| parent | 644f9c3ad93f6674abff4143b78404cd222b5e30 (diff) | |
Make TabletStatusBar call into StatusBarManagerService when it goes out of lights out mode on its
own.
Bug: 3241144
Change-Id: Id09437a4f32f1d64daa7ae65e41c99897b5964d7
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java | 7 | ||||
| -rw-r--r-- | services/java/com/android/server/StatusBarManagerService.java | 10 |
2 files changed, 6 insertions, 11 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java index d46de15c8878..14a2f90acbfe 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java @@ -391,8 +391,11 @@ public class TabletStatusBar extends StatusBar implements new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent ev) { if (ev.getAction() == MotionEvent.ACTION_DOWN) { - mShadow.setVisibility(View.GONE); - mBarContents.setVisibility(View.VISIBLE); + try { + mBarService.setSystemUiVisibility(View.STATUS_BAR_VISIBLE); + } catch (RemoteException ex) { + // system process dead + } } return false; } diff --git a/services/java/com/android/server/StatusBarManagerService.java b/services/java/com/android/server/StatusBarManagerService.java index 86b8bc619dc2..bdaa3b02e2b9 100644 --- a/services/java/com/android/server/StatusBarManagerService.java +++ b/services/java/com/android/server/StatusBarManagerService.java @@ -283,16 +283,8 @@ public class StatusBarManagerService extends IStatusBarService.Stub } } - /** - * This is used for the user-controlled version of lights-out mode. Only call this from - * the status bar itself. - * - * We have two different functions here, because I think we're going to want to - * tweak the behavior when the user keeps turning lights-out mode off and the - * app keeps trying to turn it on. For now they can just fight it out. Having - * these two separte inputs will allow us to keep that change local to here. --joeo - */ public void setSystemUiVisibility(int vis) { + // also allows calls from window manager which is in this process. enforceStatusBarService(); synchronized (mLock) { |