summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2019-01-22 17:48:34 +0100
committerJorim Jaggi <jjaggi@google.com>2019-01-28 13:10:48 +0000
commitd89efebc9792a327a408293cb20026dfe22cd98d (patch)
treeded272030740a4cd589c6e9f526079ca7e5008b6 /core/java
parent92fd290867b1e43f9f6f0d7869e43edce251f061 (diff)
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
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/view/InsetsSourceConsumer.java2
-rw-r--r--core/java/android/view/InsetsState.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/view/InsetsSourceConsumer.java b/core/java/android/view/InsetsSourceConsumer.java
index 7937cb69b80e..8e9305fa6b6a 100644
--- a/core/java/android/view/InsetsSourceConsumer.java
+++ b/core/java/android/view/InsetsSourceConsumer.java
@@ -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) {
diff --git a/core/java/android/view/InsetsState.java b/core/java/android/view/InsetsState.java
index a6af1a296faf..4f809fe6d54a 100644
--- a/core/java/android/view/InsetsState.java
+++ b/core/java/android/view/InsetsState.java
@@ -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: