summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/keyguard
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2016-03-28 15:04:29 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-04-01 12:51:54 -0700
commit9a8df5bc8488c19dc0a1951cad44956894a75a09 (patch)
tree8a2de2c0b8d4337f4b3d4c664ccdca2f1d0fc22f /packages/SystemUI/src/com/android/systemui/keyguard
parent16a065df515225bf4da78df7ccea63ca860b2b20 (diff)
downloadframeworks_base-9a8df5bc8488c19dc0a1951cad44956894a75a09.zip
frameworks_base-9a8df5bc8488c19dc0a1951cad44956894a75a09.tar.gz
frameworks_base-9a8df5bc8488c19dc0a1951cad44956894a75a09.tar.bz2
Implement left swipe on lockscreen
Allows user to left swipe to live lockscreen and back. Change-Id: Ia94d735695b77a091a240e13858641cf95ac0647
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/keyguard')
-rw-r--r--packages/SystemUI/src/com/android/systemui/keyguard/KeyguardService.java6
-rwxr-xr-xpackages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java12
2 files changed, 18 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardService.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardService.java
index d2c60ef..a6ca6a0 100644
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardService.java
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardService.java
@@ -90,6 +90,12 @@ public class KeyguardService extends Service {
mKeyguardViewMediator.setOccluded(isOccluded);
}
+ @Override
+ public void showKeyguard() {
+ checkPermission();
+ mKeyguardViewMediator.showKeyguard();
+ }
+
@Override // Binder interface
public void dismiss() {
checkPermission();
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
index 06ce8cc..cd94c06 100755
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
@@ -351,6 +351,8 @@ public class KeyguardViewMediator extends SystemUI {
private IKeyguardDrawnCallback mDrawnCallback;
private LockscreenEnabledSettingsObserver mSettingsObserver;
+ private PhoneStatusBar mStatusBar;
+
public static class LockscreenEnabledSettingsObserver extends UserContentObserver {
private static final String KEY_ENABLED = "lockscreen_enabled";
@@ -1291,6 +1293,15 @@ public class KeyguardViewMediator extends SystemUI {
mHandler.sendEmptyMessage(DISMISS);
}
+ public void showKeyguard() {
+ mHandler.post(new Runnable() {
+ @Override
+ public void run() {
+ mStatusBar.showKeyguard();
+ }
+ });
+ }
+
/**
* Send message to keyguard telling it to reset its state.
* @see #handleReset
@@ -1865,6 +1876,7 @@ public class KeyguardViewMediator extends SystemUI {
FingerprintUnlockController fingerprintUnlockController) {
mStatusBarKeyguardViewManager.registerStatusBar(phoneStatusBar, container,
statusBarWindowManager, scrimController, fingerprintUnlockController);
+ mStatusBar = phoneStatusBar;
return mStatusBarKeyguardViewManager;
}