OSDN Git Service

Fix settings crash due to enrolling error
authorKevin Chyn <kchyn@google.com>
Fri, 19 May 2017 19:22:44 +0000 (12:22 -0700)
committerKevin Chyn <kchyn@google.com>
Fri, 19 May 2017 20:04:08 +0000 (13:04 -0700)
commit468a72aed3406db33935351731f6731cb64b4498
treed01e4558a5ac3c076925aacc96b82861fbd60fd8
parent7d045387e00b1174f2f8ad51f1e494cf143b7a63
Fix settings crash due to enrolling error

Test: There's a condition where FP enrollment fails and a fragment
transaction/commit occurs after onSaveInstanceState. We should be
using commitAllowingStateLoss() instead of commit()

I'm not able to repro this issue but from looking at the stack
trace this should fix the problem.

Fixes: 38432354

Change-Id: I56b9c8d2efc45e9d77f29b897280f5378c3a84a0
src/com/android/settings/fingerprint/FingerprintEnrollFindSensor.java