Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0edd9e37 authored by Tracy Zhou's avatar Tracy Zhou Committed by Automerger Merge Worker
Browse files

Merge "Add onSwipeToHomeFinished to OverviewProxyListener" into sc-dev am: 133e340e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14341835

Change-Id: Ib103a9f7dff0c7cd9e8d4a50081a1289b9cde7dd
parents 1f53302c 133e340e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -408,6 +408,7 @@ public class OverviewProxyService extends CurrentUserTracker implements
                mPipOptional.ifPresent(
                        pip -> pip.setPinnedStackAnimationType(
                                PipAnimationController.ANIM_TYPE_ALPHA));
                mHandler.post(() -> notifySwipeToHomeFinishedInternal());
            } finally {
                Binder.restoreCallingIdentity(token);
            }
@@ -886,6 +887,12 @@ public class OverviewProxyService extends CurrentUserTracker implements
        }
    }

    public void notifySwipeToHomeFinishedInternal() {
        for (int i = mConnectionCallbacks.size() - 1; i >= 0; --i) {
            mConnectionCallbacks.get(i).onSwipeToHomeFinished();
        }
    }

    public void notifyAssistantVisibilityChanged(float visibility) {
        try {
            if (mOverviewProxy != null) {
@@ -962,6 +969,7 @@ public class OverviewProxyService extends CurrentUserTracker implements
    public interface OverviewProxyListener {
        default void onConnectionChanged(boolean isConnected) {}
        default void onQuickStepStarted() {}
        default void onSwipeToHomeFinished() {}
        default void onQuickSwitchToNewTask(@Surface.Rotation int rotation) {}
        default void onOverviewShown(boolean fromHome) {}
        default void onQuickScrubStarted() {}