diff options
author | Matthew Ng <ngmatthew@google.com> | 2018-03-14 19:43:18 +0000 |
---|---|---|
committer | Matthew Ng <ngmatthew@google.com> | 2018-03-14 13:51:26 -0700 |
commit | 2ea93b708dbc49235b42e76a587d5f353638040f (patch) | |
tree | 33ae598c75afc5773d5fa796f40e3fea98c5b8f6 /packages/SystemUI/src/com/android/systemui/OverviewProxyService.java | |
parent | 6d4bdc53814fb99623ab11c9b2b4a1db7f4a4858 (diff) |
Revert "Revert "Centralized quick step/scrub/switch logic (1/2)""
This reverts commit 0e490d9208de480ed38fe31a12029fc59b0955e9.
Reason for revert: Will be merged with fix
Bug: 74726495
Test: manual
Change-Id: I36ea9c2702107b23eff4adb1f3ba9fdc1be12999
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, 3 insertions, 12 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java index 041af0e47119..a4af6b26a854 100644 --- a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java @@ -102,15 +102,6 @@ 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 { @@ -283,9 +274,9 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis } } - private void notifyRecentsAnimationStarted() { + public void notifyQuickStepStarted() { for (int i = mConnectionCallbacks.size() - 1; i >= 0; --i) { - mConnectionCallbacks.get(i).onRecentsAnimationStarted(); + mConnectionCallbacks.get(i).onQuickStepStarted(); } } @@ -300,7 +291,7 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis public interface OverviewProxyListener { default void onConnectionChanged(boolean isConnected) {} - default void onRecentsAnimationStarted() {} + default void onQuickStepStarted() {} default void onInteractionFlagsChanged(@InteractionType int flags) {} } } |