OSDN Git Service

Fix setting crash when removing screenlock with fp
authorKevin Chyn <kchyn@google.com>
Fri, 14 Apr 2017 20:33:21 +0000 (13:33 -0700)
committerKevin Chyn <kchyn@google.com>
Fri, 14 Apr 2017 20:33:21 +0000 (13:33 -0700)
commitae16e55dd5d93db547cbcdb848a98242db8ad9f7
treeed0c1bc535ed2052ef96faefc2e55ebf4aba9f77
parent2a3a92b513fa8f8f3c82cb934223ba8379694a26
Fix setting crash when removing screenlock with fp

If a phone is operating slower than normal, when removing screen lock,
it's possible for the user to go back to settings page while removal
is still in progress. The removal callback will crash ChooseLockGeneric

Fixes: 37329856
Test: in fpc_tee_hal.c, make do_remove slow (5s). set up lockscreen, fingerprint,
then set lockscreen to none or swipe. do device rotations, go back to lock screen,
and then try to enroll fingerprint

Change-Id: I6da131a0001b22d06e359401f2ca1c6496c071ca
src/com/android/settings/ChooseLockGeneric.java