Created
November 27, 2020 15:00
-
-
Save Dil3mm4/f98e2b7896db4312861c8bd339ceb556 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a6befc3f4d6187c8529f3240a7cd5c94b6440ee0 Mon Sep 17 00:00:00 2001 | |
From: Dil3mm4 <dil3mm4.dev@gmail.com> | |
Date: Fri, 27 Nov 2020 14:59:46 +0000 | |
Subject: [PATCH] FOD: KeyguardSecurityContainer doesn't need need to be | |
shifted if FOD isn't available | |
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java | |
index 3905d5f5df14..036ac1c80a6b 100644 | |
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java | |
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java | |
@@ -517,8 +517,9 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe | |
// Consume bottom insets because we're setting the padding locally (for IME and navbar.) | |
int inset; | |
- int minBottomMargin = getResources().getDimensionPixelSize( | |
- R.dimen.kg_security_container_min_bottom_margin); | |
+ boolean fodEquipped = mContext.getResources().getBoolean(com.android.internal.R.bool.config_supportsInDisplayFingerprint); | |
+ int minBottomMargin = mUpdateMonitor.isFingerprintDetectionRunning() && fodEquipped ? getResources().getDimensionPixelSize( | |
+ R.dimen.kg_security_container_min_bottom_margin) : 0; | |
if (sNewInsetsMode == NEW_INSETS_MODE_FULL) { | |
int bottomInset = insets.getInsetsIgnoringVisibility(systemBars()).bottom; | |
@@ -982,4 +983,3 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe | |
mSecurityViewFlipper.showUsabilityHint(); | |
} | |
} | |
- | |
-- | |
2.20.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment