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

Commit 53991c2f authored by Felix Stern's avatar Felix Stern
Browse files

Put ImeTracker.onProgress(PHASE_WM_UPDATE_REQUESTED_VISIBLE_TYPES) behind feature flag

Without the refactor changes, after a successful show call, `updateRequestedVisibleTypes` is called, which would change the "last" phase reached. This CL puts this phase behind the feature flag.

Change-Id: I3c09eeaba914d54416f954b2c8d05d1e71ec0679
Test: atest CtsInputMethodTestCases
Flag: android.view.inputmethod.refactor_insets_controller
Bug: 329229469
parent aad11054
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -699,8 +699,10 @@ class Session extends IWindowSession.Stub implements IBinder.DeathRecipient {
            final WindowState win = mService.windowForClientLocked(this, window,
                    false /* throwOnError */);
            if (win != null) {
                if (android.view.inputmethod.Flags.refactorInsetsController()) {
                    ImeTracker.forLogging().onProgress(imeStatsToken,
                            ImeTracker.PHASE_WM_UPDATE_REQUESTED_VISIBLE_TYPES);
                }
                win.setRequestedVisibleTypes(requestedVisibleTypes);
                win.getDisplayContent().getInsetsPolicy().onRequestedVisibleTypesChanged(win,
                        imeStatsToken);