Return previous visibility in InsetsSourceConsumer if no leash available only for IME
Previously, we returned the previous visibility in applyLocalVisibilityOverride also for other types than the IME, if no leash was available.
This leads to calling notifyInsetsChanged to early. Therefore, returning it only for the IME.
Test: atest CtsViewTestCases:android.view.cts.TextureViewTest#testGetBitmap_SRGB
Flag: android.view.inputmethod.refactor_insets_controller
Fix: 355043292
Change-Id: Iecdf481305bc4a60596f07abfe88493e6887c495
1 file changed