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

Commit 0c3317d7 authored by Ming-Shin Lu's avatar Ming-Shin Lu
Browse files

Shell-Transition: call maybeFinishStylusHandwriting when swiping on navBar

Since the laucher is no longer rely on RecentsAnimationController to signal
the recent task being gestured out to home with shell-transition and it
replaced with WindowManagerService#setRecentsAppBehindSystemBars.

So that maybeFinishStylusHandwriting missed to call with enabling
shell-transition

Add the missed call in WindowManagerService#setRecentsAppBehindSystemBars
to fix this issue.

Fix: 253259123
Test: atest StylusHandwritingTest#\
       testStylusSession_fingerTriggersNavbarGestures passed on the
      device with enabling shell-transition
Change-Id: I958d013c0511dccb0a0d751b811c0fff1bfb8a04
parent b7f831e2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -317,6 +317,7 @@ import com.android.server.LocalServices;
import com.android.server.UiThread;
import com.android.server.Watchdog;
import com.android.server.input.InputManagerService;
import com.android.server.inputmethod.InputMethodManagerInternal;
import com.android.server.pm.UserManagerInternal;
import com.android.server.policy.WindowManagerPolicy;
import com.android.server.policy.WindowManagerPolicy.ScreenOffListener;
@@ -9289,6 +9290,7 @@ public class WindowManagerService extends IWindowManager.Stub
                    recentsApp.getTask().setCanAffectSystemUiFlags(behindSystemBars);
                    mWindowPlacerLocked.requestTraversal();
                }
                InputMethodManagerInternal.get().maybeFinishStylusHandwriting();
            }
        } finally {
            Binder.restoreCallingIdentity(token);