Merge "Fix ServiceNotFoundException error log when pressing power button on a device that doesn't have fingerprint sensor."

This commit is contained in:
TreeHugger Robot
2022-11-10 18:53:57 +00:00
committed by Android (Google) Code Review

View File

@@ -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) {