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

Commit 54b1ccee authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "Post pilferPointers callback to UiThread's executor" into main

parents a6c240e1 f970db03
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1335,14 +1335,16 @@ public class EdgeBackGestureHandler implements PluginListener<NavigationEdgeBack
    public void setBackAnimation(@Nullable BackAnimation backAnimation) {
        mBackAnimation = backAnimation;
        if (backAnimation != null) {
            backAnimation.setPilferPointerCallback(this::pilferPointers);
            final Executor uiThreadExecutor = mUiThreadContext.getExecutor();
            backAnimation.setPilferPointerCallback(
                    () -> uiThreadExecutor.execute(this::pilferPointers));
            backAnimation.setTopUiRequestCallback(
                    (requestTopUi, tag) -> mUiThreadContext.getExecutor().execute(() ->
                    (requestTopUi, tag) -> uiThreadExecutor.execute(() ->
                            mNotificationShadeWindowController.setRequestTopUi(requestTopUi, tag)));
            updateBackAnimationThresholds();
            if (mLightBarControllerProvider.get() != null) {
                mBackAnimation.setStatusBarCustomizer((appearance) ->
                        mUiThreadContext.getExecutor().execute(() ->
                        uiThreadExecutor.execute(() ->
                            mLightBarControllerProvider.get()
                                    .customizeStatusBarAppearance(appearance)));
            }