Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c310118b authored by Kevin Chyn's avatar Kevin Chyn
Browse files

FingerprintService should release wakelock only if isHeld

Fixes: 64386519

Test: I couldn't reproduce the problem by changing it to acquire only for
1ms, but this looks like it's the only possible cause for the crash

Change-Id: I312d008198f1c56513b461beee09e6e4dd7b7c88
parent 3102245b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -921,8 +921,10 @@ public class FingerprintService extends SystemService implements IHwBinder.Death

                        @Override
                        public void sendResult(Bundle data) throws RemoteException {
                            if (mWakeLock.isHeld()) {
                                mWakeLock.release();
                            }
                        }
                    });
                } catch (DeadObjectException e) {
                    Slog.w(TAG, "Death object while invoking onLockoutReset: ", e);