Skip to content

Commit 6b67967

Browse files
minaripenguinBlaster4385
authored andcommitted
base: Do not reset keyguard going away state
- Fixes the flicker on turning of the screen when udfps is enabled Co-authored-by: Blaster4385 <venkateshchaturvedi12@gmail.com> Change-Id: I9960b4e2f3ad5fbb04969224bd8c2eec1cd1f1ee Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
1 parent 25fc232 commit 6b67967

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
import com.android.internal.policy.IKeyguardStateCallback;
105105
import com.android.internal.policy.ScreenDecorationsUtils;
106106
import com.android.internal.statusbar.IStatusBarService;
107+
import com.android.internal.util.ArrayUtils;
107108
import com.android.internal.util.LatencyTracker;
108109
import com.android.internal.widget.LockPatternUtils;
109110
import com.android.keyguard.KeyguardConstants;
@@ -1424,7 +1425,11 @@ public void onStartedGoingToSleep(@WindowManagerPolicyConstants.OffReason int of
14241425
// explicitly DO NOT want to call
14251426
// mKeyguardViewControllerLazy.get().setKeyguardGoingAwayState(false)
14261427
// here, since that will mess with the device lock state.
1427-
mUpdateMonitor.dispatchKeyguardGoingAway(false);
1428+
int[] udfpsProps = mContext.getResources().getIntArray(
1429+
com.android.internal.R.array.config_udfps_sensor_props);
1430+
if (ArrayUtils.isEmpty(udfpsProps)) {
1431+
mUpdateMonitor.dispatchKeyguardGoingAway(false);
1432+
}
14281433

14291434
notifyStartedGoingToSleep();
14301435
}

0 commit comments

Comments
 (0)