Merge "Fix ServiceNotFoundException error log when pressing power button on a device that doesn't have fingerprint sensor."
This commit is contained in:
committed by
Android (Google) Code Review
commit
8ab2410bb5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user