From fb9f00aee44306cd69fb6415276528ab24802362 Mon Sep 17 00:00:00 2001 From: Pranav Date: Tue, 26 Mar 2024 11:28:14 +0530 Subject: [PATCH] Remove bottom margin when keyboard is active --- app/src/main/kotlin/org/cosmicide/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/cosmicide/MainActivity.kt b/app/src/main/kotlin/org/cosmicide/MainActivity.kt index 22d48cfc6..0dd8468d9 100644 --- a/app/src/main/kotlin/org/cosmicide/MainActivity.kt +++ b/app/src/main/kotlin/org/cosmicide/MainActivity.kt @@ -74,7 +74,7 @@ class MainActivity : AppCompatActivity() { leftMargin = systemBarInsets.left rightMargin = systemBarInsets.right topMargin = systemBarInsets.top - bottomMargin = if (imeInset.bottom > 0) imeInset.bottom else systemBarInsets.bottom + bottomMargin = if (imeInset.bottom > 0) 0 else systemBarInsets.bottom }