Solve small bug in code (listener)

This commit is contained in:
J-Jamet
2018-02-22 18:16:16 +01:00
parent 25fb85a5ef
commit ecdadaf0bc

View File

@@ -453,14 +453,14 @@ public class PasswordActivity extends LockingActivity
protected void onPause() { protected void onPause() {
super.onPause(); super.onPause();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
&& fingerPrintAnimatedVector != null) { if (fingerPrintAnimatedVector != null) {
fingerPrintAnimatedVector.stopScan(); fingerPrintAnimatedVector.stopScan();
} }
// stop listening when we go in background
// stop listening when we go in background if (fingerPrintHelper != null) {
if (fingerPrintHelper != null) { fingerPrintHelper.stopListening();
fingerPrintHelper.stopListening(); }
} }
} }