diff options
author | Danesh M <danesh@cyngn.com> | 2016-05-17 16:49:02 -0700 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2016-05-18 14:13:46 -0700 |
commit | 2cfbb7a359f8fe549d734693727afa4670876eb7 (patch) | |
tree | c45b377281f74afea7049d7244f19af875d34e0a /packages/SystemUI/src/com/android/systemui/keyguard | |
parent | 234fb3b03cd4c979286981cf77fef481700a329b (diff) | |
download | frameworks_base-2cfbb7a359f8fe549d734693727afa4670876eb7.zip frameworks_base-2cfbb7a359f8fe549d734693727afa4670876eb7.tar.gz frameworks_base-2cfbb7a359f8fe549d734693727afa4670876eb7.tar.bz2 |
SystemUI : Fix left swipe when dismissing bouncer
- Only show bouncer when requesting dismiss, which will set the states
for us.
- Also remove duplicate states.
- Ensure we disable edge gesture when showKeyguard is called
- Bail out on showKeyguard if already in keyguard.
CYNGNOS-2872
Change-Id: I6be10923de1590b386c270925654669a8f832cfe
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/keyguard')
-rwxr-xr-x | packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java index 3c9f47f..166b25c 100755 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java @@ -62,6 +62,7 @@ import android.view.animation.AnimationUtils; import com.android.systemui.cm.UserContentObserver; import com.android.systemui.qs.tiles.LockscreenToggleTile; +import com.android.systemui.statusbar.StatusBarState; import cyanogenmod.app.Profile; import cyanogenmod.app.ProfileManager; @@ -1297,7 +1298,8 @@ public class KeyguardViewMediator extends SystemUI { public void showKeyguard() { // This is to prevent left edge from interfering // with affordances. - if (mStatusBar.isAffordanceSwipeInProgress()) { + if (mStatusBar.isAffordanceSwipeInProgress() + || mStatusBar.getBarState() == StatusBarState.KEYGUARD) { return; } |