From 3ac28ac86c71cdc6a1c58bdad0ba091ea457dc51 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Mon, 13 May 2019 16:33:32 -0700 Subject: [PATCH] Process insets correctly Bottom window insets were being processed but keyboard was being ignored. Paddings should also only be applied on the correct lifecycle event. Fixes: 132615062 Test: swipe up to unlock with: pin/pattern/password Test: swipe up to unlock with: 2 button navbar, gestural navbar Change-Id: Ib573e20d9955e644f60333ad3d8e0f2d7e73fe54 --- .../res-keyguard/layout/keyguard_host_view.xml | 1 + .../keyguard/KeyguardSecurityContainer.java | 18 ++++++------------ 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_host_view.xml b/packages/SystemUI/res-keyguard/layout/keyguard_host_view.xml index 29376ce01e4fd..796123db7c793 100644 --- a/packages/SystemUI/res-keyguard/layout/keyguard_host_view.xml +++ b/packages/SystemUI/res-keyguard/layout/keyguard_host_view.xml @@ -38,6 +38,7 @@ android:clipChildren="false" android:clipToPadding="false" android:padding="0dp" + android:fitsSystemWindows="true" android:layout_gravity="center">