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

Commit e5447541 authored by Felix Stern's avatar Felix Stern
Browse files

Call notifyInsetsChanged onRequestedVisibleTypesChanged

With the refactor flag enabled, we only called into InsetsStateController#notifyInsetsChanged, when there was a control change. This is valid for the IME, but might not be the case for other insets types. Therefore, enabling the call again.

Test: None
Bug: 298172246
Flag: android.view.inputmethod.refactor_insets_controller
Change-Id: Iae8817a1a6b993c801384c640b2c8481895969a1
parent 3f72bb5d
Loading
Loading
Loading
Loading
+4 −6
Original line number Original line Diff line number Diff line
@@ -228,7 +228,6 @@ class InsetsStateController {
            changed |= provider.updateClientVisibility(caller,
            changed |= provider.updateClientVisibility(caller,
                    isImeProvider ? statsToken : null);
                    isImeProvider ? statsToken : null);
        }
        }
        if (!android.view.inputmethod.Flags.refactorInsetsController()) {
        if (changed) {
        if (changed) {
            notifyInsetsChanged();
            notifyInsetsChanged();
            mDisplayContent.updateSystemGestureExclusion();
            mDisplayContent.updateSystemGestureExclusion();
@@ -236,7 +235,6 @@ class InsetsStateController {
            mDisplayContent.getDisplayPolicy().updateSystemBarAttributes();
            mDisplayContent.getDisplayPolicy().updateSystemBarAttributes();
        }
        }
    }
    }
    }


    @InsetsType int getFakeControllingTypes(InsetsTarget target) {
    @InsetsType int getFakeControllingTypes(InsetsTarget target) {
        @InsetsType int types = 0;
        @InsetsType int types = 0;