From edf0185326ff7eb14979f4f1f87a68c22a507b5b Mon Sep 17 00:00:00 2001 From: d34d Date: Mon, 4 Apr 2016 10:05:06 -0700 Subject: SysUI/LLS: Slide panel out when collapse called The actions performed when collapseNotificationPanel is called needed to be updated with the introduction of the new sliding notification panel UX. Change-Id: I5914242cf9586b49f90ee51db5e64ef2a0b27397 TICKET: CYNGNOS-2354 --- .../com/android/systemui/statusbar/phone/NotificationPanelView.java | 4 ++++ .../android/systemui/statusbar/policy/LiveLockScreenController.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index 125e3f1..c316e4c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -2811,4 +2811,8 @@ public class NotificationPanelView extends PanelView implements List tasks = am.getRunningTasks(1); return !tasks.isEmpty() && pkgName.equals(tasks.get(0).topActivity.getPackageName()); } + + public void slideLockScreenOut() { + mSwipeCallback.onChildDismissed(this); + } } diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/LiveLockScreenController.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/LiveLockScreenController.java index 6d14cbd..46b23d8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/LiveLockScreenController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/LiveLockScreenController.java @@ -163,7 +163,7 @@ public class LiveLockScreenController { mHandler.post(new Runnable() { @Override public void run() { - mBar.focusKeyguardExternalView(); + mPanelView.slideLockScreenOut(); } }); } -- cgit v1.1