diff options
author | Adrian Roos <roosa@google.com> | 2020-03-17 20:04:35 +0100 |
---|---|---|
committer | Adrian Roos <roosa@google.com> | 2020-03-18 12:17:19 +0100 |
commit | 5d557edb448ae807072c1dde625a972e1ddf0b2a (patch) | |
tree | fcc80875d4450e20f2afdf7d63ca4399d15dbf6d /tests/WindowInsetsTests | |
parent | e88d949e0a191e2419eb207ac3a9a852fa012686 (diff) |
WindowInsetsAnimationController: Add state callback and getters
Adds more comprehensive callbacks and getters for the WindowInsetsAnimationController,
to make it more straight forward to properly use.
Test: atest InsetsControllerTest PendingInsetsControllerTest
Fixes: 151707442
Change-Id: Ida55f609112396c0f6de4c5c4431e0793c2e315e
Diffstat (limited to 'tests/WindowInsetsTests')
-rw-r--r-- | tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/WindowInsetsActivity.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/WindowInsetsActivity.java b/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/WindowInsetsActivity.java index f254e4d3267a..548af0c54b03 100644 --- a/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/WindowInsetsActivity.java +++ b/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/WindowInsetsActivity.java @@ -114,7 +114,14 @@ public class WindowInsetsActivity extends AppCompatActivity { } @Override - public void onCancelled() { + public void onFinished( + WindowInsetsAnimationController controller) { + mAnimationController = null; + } + + @Override + public void onCancelled( + WindowInsetsAnimationController controller) { mAnimationController = null; } }); @@ -230,7 +237,13 @@ public class WindowInsetsActivity extends AppCompatActivity { } @Override - public void onCancelled() { + public void onFinished( + WindowInsetsAnimationController controller) { + } + + @Override + public void onCancelled( + WindowInsetsAnimationController controller) { } }); } |