Merge "Perform layout when IME target changes" into rvc-dev
This commit is contained in:
@@ -3425,7 +3425,7 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo
|
||||
|
||||
mInputMethodTarget = target;
|
||||
mInputMethodTargetWaitingAnim = targetWaitingAnim;
|
||||
assignWindowLayers(false /* setLayoutNeeded */);
|
||||
assignWindowLayers(true /* setLayoutNeeded */);
|
||||
updateImeParent();
|
||||
updateImeControlTarget();
|
||||
}
|
||||
|
||||
@@ -191,7 +191,6 @@ public class InsetsStateControllerTest extends WindowTestsBase {
|
||||
// Adding FLAG_NOT_FOCUSABLE makes app above IME.
|
||||
app.mAttrs.flags |= FLAG_NOT_FOCUSABLE;
|
||||
mDisplayContent.computeImeTarget(true);
|
||||
mDisplayContent.setLayoutNeeded();
|
||||
mDisplayContent.applySurfaceChangesTransaction();
|
||||
|
||||
// app won't get visible IME insets while above IME even when IME is visible.
|
||||
@@ -204,7 +203,6 @@ public class InsetsStateControllerTest extends WindowTestsBase {
|
||||
// Removing FLAG_NOT_FOCUSABLE makes app below IME.
|
||||
app.mAttrs.flags &= ~FLAG_NOT_FOCUSABLE;
|
||||
mDisplayContent.computeImeTarget(true);
|
||||
mDisplayContent.setLayoutNeeded();
|
||||
mDisplayContent.applySurfaceChangesTransaction();
|
||||
|
||||
// Make sure app got notified.
|
||||
|
||||
Reference in New Issue
Block a user