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

Commit 7d5f3fec authored by Josh Yang's avatar Josh Yang
Browse files

Fix ServiceNotFoundException error log when pressing power button on a

device that doesn't have fingerprint sensor.

Test: verified that the error is gone on a watch
Change-Id: I9e15180b7f395d2e0fc3317f70daec44cf39ce81
parent 8e0eb90b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ public class SideFpsEventHandler implements View.OnClickListener {
     */
    public void notifyPowerPressed() {
        Log.i(TAG, "notifyPowerPressed");
        if (mFingerprintManager == null) {
        if (mFingerprintManager == null && mSideFpsEventHandlerReady.get()) {
            mFingerprintManager = mContext.getSystemService(FingerprintManager.class);
        }
        if (mFingerprintManager == null) {