Reset visibility before creating leash
Otherwise we create the leash with visibility=shown before the client can update it, creating a flicker. Test: Open IME, go home, observe no flicker Bug: 111084606 Change-Id: I38eadaef79c27036edf5a86b773f6695d463db5c
This commit is contained in:
@@ -43,7 +43,7 @@ public class InsetsSourceConsumer {
|
||||
mState = state;
|
||||
mTransactionSupplier = transactionSupplier;
|
||||
mController = controller;
|
||||
mVisible = InsetsState.getDefaultVisibly(type);
|
||||
mVisible = InsetsState.getDefaultVisibility(type);
|
||||
}
|
||||
|
||||
public void setControl(@Nullable InsetsSourceControl control) {
|
||||
|
||||
@@ -278,7 +278,7 @@ public class InsetsState implements Parcelable {
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean getDefaultVisibly(@InsetType int type) {
|
||||
public static boolean getDefaultVisibility(@InsetType int type) {
|
||||
switch (type) {
|
||||
case TYPE_TOP_BAR:
|
||||
case TYPE_SIDE_BAR_1:
|
||||
|
||||
Reference in New Issue
Block a user