Skip to content
Snippets Groups Projects
Commit 9dcd8237 authored by TheScarastic's avatar TheScarastic Committed by Mohammad Hasan Keramat J
Browse files

Don't start fingerprint for FOD devices early


commit 5cece533 causes fingerprint to start early
while going to sleep and this is not the expected behaviour for devices
with FOD since we have to apply DIM and HBM simultaneously which causes
device to give flicker effect while putting phone to sleep.

Change-Id: I67b4cdbc92556b54c6e865f2332732a35f2eec57
Signed-off-by: default avatarMohammad Hasan Keramat J <ikeramat@protonmail.com>
parent 0c0dead6
Branches ten
No related tags found
No related merge requests found
......@@ -100,6 +100,8 @@ import com.android.systemui.statusbar.phone.StatusBar;
import com.android.systemui.util.DeviceConfigProxy;
import com.android.systemui.util.InjectionInflationController;
import com.android.internal.util.libremobileos.fod.FodUtils;
import java.io.FileDescriptor;
import java.io.PrintWriter;
import java.util.ArrayList;
......@@ -380,6 +382,8 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable {
private IKeyguardDrawnCallback mDrawnCallback;
private CharSequence mCustomMessage;
private boolean mHasFod;
private final DeviceConfig.OnPropertiesChangedListener mOnPropertiesChangedListener =
new DeviceConfig.OnPropertiesChangedListener() {
@Override
......@@ -748,6 +752,7 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable {
QuickStepContract.isGesturalMode(navigationModeController.addListener(mode -> {
mInGestureNavigationMode = QuickStepContract.isGesturalMode(mode);
}));
mHasFod = FodUtils.hasFodSupport(context);
}
public void userActivity() {
......@@ -878,7 +883,9 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable {
// explicitly DO NOT want to call
// mKeyguardViewControllerLazy.get().setKeyguardGoingAwayState(false)
// here, since that will mess with the device lock state.
mUpdateMonitor.dispatchKeyguardGoingAway(false);
if (!mHasFod) {
mUpdateMonitor.dispatchKeyguardGoingAway(false);
}
// Lock immediately based on setting if secure (user has a pin/pattern/password).
// This also "locks" the device when not secure to provide easy access to the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment