diff options
author | Sergey Nikolaienkov <sergeynv@google.com> | 2020-10-02 07:08:26 +0000 |
---|---|---|
committer | Sergey Nikolaienkov <sergeynv@google.com> | 2020-10-02 07:58:02 +0000 |
commit | 38f85b72c6cc2c3a884d1040f994c51bc2688fba (patch) | |
tree | fdf1eb31a4983b172eb1481d4ae71d258f4055c9 /tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java | |
parent | 79523b5afa96dca991180077f5ec7886cc58fb1b (diff) |
Fix mic indicator crash when animation gets cancelled
Take into account the fact that when ValueAnimator#cancel() is called
the listener receives the onAnimationEnd() as well as the
onAnimationCancel(). The fact that we did not destinguish between the
scenarios when the animation is fully completed and when the animation
was cancelled led to the crash in the AudioRecordingDisclosureBar. This
CL fixes the crash by handling these two cases differently.
Bug: 166578426
Test: make, flash
Test: adb shell appops start <package> 27
Test: adb shell appops stop <package> 27
Change-Id: I19489e3db18aeabfac8bbd3df0a04b7d85f5a697
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java')
0 files changed, 0 insertions, 0 deletions