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
This commit is contained in:
Ming-Shin Lu
2022-10-18 02:45:11 +08:00
parent b7f831e29f
commit 0c3317d7ed

View File

@@ -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);