Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +5 −3 Original line number Diff line number Diff line Loading @@ -637,10 +637,12 @@ public abstract class PanelView extends FrameLayout { if (mHintAnimationRunning) { return true; } if (x < mEdgeTapAreaWidth) { if (x < mEdgeTapAreaWidth && mStatusBar.getBarState() == StatusBarState.KEYGUARD) { onEdgeClicked(false /* right */); return true; } else if (x > getWidth() - mEdgeTapAreaWidth) { } else if (x > getWidth() - mEdgeTapAreaWidth && mStatusBar.getBarState() == StatusBarState.KEYGUARD) { onEdgeClicked(true /* right */); return true; } else { Loading @@ -654,7 +656,7 @@ public abstract class PanelView extends FrameLayout { startUnlockHintAnimation(); return true; case StatusBarState.SHADE_LOCKED: // TODO: Go to Keyguard again. mStatusBar.goToKeyguard(); return true; case StatusBarState.SHADE: collapse(); Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +10 −0 Original line number Diff line number Diff line Loading @@ -3054,6 +3054,16 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } } /** * Goes back to the keyguard after hanging around in {@link StatusBarState#SHADE_LOCKED}. */ public void goToKeyguard() { if (mState == StatusBarState.SHADE_LOCKED) { setBarState(StatusBarState.KEYGUARD); updateKeyguardState(); } } /** * @return a ViewGroup that spans the entire panel which contains the quick settings */ Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +5 −3 Original line number Diff line number Diff line Loading @@ -637,10 +637,12 @@ public abstract class PanelView extends FrameLayout { if (mHintAnimationRunning) { return true; } if (x < mEdgeTapAreaWidth) { if (x < mEdgeTapAreaWidth && mStatusBar.getBarState() == StatusBarState.KEYGUARD) { onEdgeClicked(false /* right */); return true; } else if (x > getWidth() - mEdgeTapAreaWidth) { } else if (x > getWidth() - mEdgeTapAreaWidth && mStatusBar.getBarState() == StatusBarState.KEYGUARD) { onEdgeClicked(true /* right */); return true; } else { Loading @@ -654,7 +656,7 @@ public abstract class PanelView extends FrameLayout { startUnlockHintAnimation(); return true; case StatusBarState.SHADE_LOCKED: // TODO: Go to Keyguard again. mStatusBar.goToKeyguard(); return true; case StatusBarState.SHADE: collapse(); Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +10 −0 Original line number Diff line number Diff line Loading @@ -3054,6 +3054,16 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } } /** * Goes back to the keyguard after hanging around in {@link StatusBarState#SHADE_LOCKED}. */ public void goToKeyguard() { if (mState == StatusBarState.SHADE_LOCKED) { setBarState(StatusBarState.KEYGUARD); updateKeyguardState(); } } /** * @return a ViewGroup that spans the entire panel which contains the quick settings */ Loading