OSDN Git Service

Fix FingerprintDialogView when show is called before animation is complete
authorKevin Chyn <kchyn@google.com>
Wed, 11 Apr 2018 02:29:23 +0000 (19:29 -0700)
committerKevin Chyn <kchyn@google.com>
Wed, 11 Apr 2018 02:31:55 +0000 (19:31 -0700)
commit87df068ac1184449879b595fe4986ff7e664aa16
treefa0e6966512f47a94f45e4aa9d095ec107c25e16
parenta4596f3e36192d769dd7b3ad93c1d9d51b319d7d
Fix FingerprintDialogView when show is called before animation is complete

If handleShowDialog is called before the animation is finished, the window
will still be attached despite the mDialogShowing variable == false. We
need a new variable to track the dismiss animation state; if the dialog
is dismissing and handleShowDialog is called again, cancel the animation
and remove the window. Then show the dialog without an entry animation.
This lets us show the dialog without a "bouncy" animation when the device
rotates, etc..

Fixes: 77877888

Test: Manual test with modified settings APK
Change-Id: Iae878ca10099d9755c27284d6df04a73fd5a37f7
packages/SystemUI/src/com/android/systemui/fingerprint/FingerprintDialogImpl.java
packages/SystemUI/src/com/android/systemui/fingerprint/FingerprintDialogView.java