diff options
author | Winson Chung <winsonc@google.com> | 2018-03-14 16:08:43 +0000 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2018-03-14 19:41:16 +0000 |
commit | 0e490d9208de480ed38fe31a12029fc59b0955e9 (patch) | |
tree | 215188b7f387d8915533ceec732e7623762208bd /packages/SystemUI/src/com/android/systemui/OverviewProxyService.java | |
parent | b06ae3bf131b0bd0ded398d3a06974a6a9d78a50 (diff) |
Revert "Centralized quick step/scrub/switch logic (1/2)"
This reverts commit b06ae3bf131b0bd0ded398d3a06974a6a9d78a50.
Reason for revert: b/74726495
Bug: 74726495
Change-Id: I4bce8df13f9fa9e1b420382f7a96f9855510196f
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/OverviewProxyService.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/OverviewProxyService.java | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java index a4af6b26a854..041af0e47119 100644 --- a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java @@ -102,6 +102,15 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis } } + public void onRecentsAnimationStarted() { + long token = Binder.clearCallingIdentity(); + try { + mHandler.post(OverviewProxyService.this::notifyRecentsAnimationStarted); + } finally { + Binder.restoreCallingIdentity(token); + } + } + public void onSplitScreenInvoked() { long token = Binder.clearCallingIdentity(); try { @@ -274,9 +283,9 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis } } - public void notifyQuickStepStarted() { + private void notifyRecentsAnimationStarted() { for (int i = mConnectionCallbacks.size() - 1; i >= 0; --i) { - mConnectionCallbacks.get(i).onQuickStepStarted(); + mConnectionCallbacks.get(i).onRecentsAnimationStarted(); } } @@ -291,7 +300,7 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis public interface OverviewProxyListener { default void onConnectionChanged(boolean isConnected) {} - default void onQuickStepStarted() {} + default void onRecentsAnimationStarted() {} default void onInteractionFlagsChanged(@InteractionType int flags) {} } } |