From 0c3317d7edbe1f3dfb8234a21aaa79a525e92300 Mon Sep 17 00:00:00 2001 From: Ming-Shin Lu Date: Tue, 18 Oct 2022 02:45:11 +0800 Subject: [PATCH] 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 --- .../core/java/com/android/server/wm/WindowManagerService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java index 5ac034b8954f4..c17af3093e516 100644 --- a/services/core/java/com/android/server/wm/WindowManagerService.java +++ b/services/core/java/com/android/server/wm/WindowManagerService.java @@ -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);