Merge "Add logs to sidefps visibility status" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0edaab8db8
@@ -353,10 +353,21 @@ public class KeyguardSecurityContainerController extends ViewController<Keyguard
|
|||||||
if (!mSidefpsController.isPresent()) {
|
if (!mSidefpsController.isPresent()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mBouncerVisible
|
final boolean sfpsEnabled = getResources().getBoolean(
|
||||||
&& getResources().getBoolean(R.bool.config_show_sidefps_hint_on_bouncer)
|
R.bool.config_show_sidefps_hint_on_bouncer);
|
||||||
&& mUpdateMonitor.isFingerprintDetectionRunning()
|
final boolean fpsDetectionRunning = mUpdateMonitor.isFingerprintDetectionRunning();
|
||||||
&& !mUpdateMonitor.userNeedsStrongAuth()) {
|
final boolean needsStrongAuth = mUpdateMonitor.userNeedsStrongAuth();
|
||||||
|
|
||||||
|
boolean toShow = mBouncerVisible && sfpsEnabled && fpsDetectionRunning && !needsStrongAuth;
|
||||||
|
|
||||||
|
if (DEBUG) {
|
||||||
|
Log.d(TAG, "sideFpsToShow=" + toShow + ", "
|
||||||
|
+ "mBouncerVisible=" + mBouncerVisible + ", "
|
||||||
|
+ "configEnabled=" + sfpsEnabled + ", "
|
||||||
|
+ "fpsDetectionRunning=" + fpsDetectionRunning + ", "
|
||||||
|
+ "needsStrongAuth=" + needsStrongAuth);
|
||||||
|
}
|
||||||
|
if (toShow) {
|
||||||
mSidefpsController.get().show();
|
mSidefpsController.get().show();
|
||||||
} else {
|
} else {
|
||||||
mSidefpsController.get().hide();
|
mSidefpsController.get().hide();
|
||||||
|
|||||||
Reference in New Issue
Block a user