summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorTaran Singh <tarandeep@google.com>2020-04-21 17:26:50 -0700
committerTaran Singh <tarandeep@google.com>2020-04-24 11:37:30 -0700
commit8321a2a48dd63124dd1e418c9d730ef9bab0d62a (patch)
treeebc2a573cdac2e684fd3b29b54ac87d7881309dd /core/java/android
parented642064719edf033ca48cf026f563eb483526c0 (diff)
Add test for ImeInsetsSourceConsumer
Add test to verify that requestedVisibleAwaitingControl starts animation. This is followup test for comment in commit I958fc5747382109aa2f21bc1067a28746e7242d8 Bug: 154440912 Fix: 153577930 Test: atest ImeInsetsSourceConsumerTest Change-Id: I08db27151605ac53b0575b08343b5a75dc2e5fc2
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/InsetsController.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/view/InsetsController.java b/core/java/android/view/InsetsController.java
index 43c7bede38c2..f135328c44fe 100644
--- a/core/java/android/view/InsetsController.java
+++ b/core/java/android/view/InsetsController.java
@@ -1002,7 +1002,8 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation
}
}
- private void applyAnimation(@InsetsType final int types, boolean show, boolean fromIme) {
+ @VisibleForTesting
+ public void applyAnimation(@InsetsType final int types, boolean show, boolean fromIme) {
if (types == 0) {
// nothing to animate.
return;