From 8f97864131758c1b2330cda8ff034d9baa4714e7 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 17 May 2024 14:30:33 +0200 Subject: [PATCH] Fixed keyboard inset --- app/src/main/java/eu/faircode/email/ActivityBase.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityBase.java b/app/src/main/java/eu/faircode/email/ActivityBase.java index 6fba83d89b..de46b8ee12 100644 --- a/app/src/main/java/eu/faircode/email/ActivityBase.java +++ b/app/src/main/java/eu/faircode/email/ActivityBase.java @@ -130,19 +130,12 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc if (ActivityBase.this instanceof ActivityCompose) { int bottom = windowInsets.getInsets(WindowInsetsCompat.Type.ime()).bottom; - ViewCompat.onApplyWindowInsets(v, new WindowInsetsCompat - .Builder() - .setInsets( - WindowInsetsCompat.Type.systemBars(), - Insets.of(0, 0, 0, bottom - insets.bottom) - ) - .build()); + v.setPaddingRelative(0, 0, 0, bottom - insets.bottom); } return WindowInsetsCompat.CONSUMED; }); - super.setContentView(container); int colorPrimaryDark = Helper.resolveColor(this, androidx.appcompat.R.attr.colorPrimaryDark);