Merge "Reset visibility before creating leash"

This commit is contained in:
Jorim Jaggi
2019-01-28 18:58:41 +00:00
committed by Android (Google) Code Review
4 changed files with 10 additions and 9 deletions

View File

@@ -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) {

View File

@@ -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: