From 0bfd0d2a9bb32009aeb2952fc0f30f232e3642ae Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 1 Jun 2024 17:56:42 +0200 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/ActivityBase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityBase.java b/app/src/main/java/eu/faircode/email/ActivityBase.java index e5da969071..c80a757fb6 100644 --- a/app/src/main/java/eu/faircode/email/ActivityBase.java +++ b/app/src/main/java/eu/faircode/email/ActivityBase.java @@ -266,7 +266,8 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc controller.setAppearanceLightStatusBars(false); controller.setAppearanceLightNavigationBars(false); window.setNavigationBarColor(Color.TRANSPARENT); - window.setNavigationBarContrastEnforced(false); + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) + window.setNavigationBarContrastEnforced(false); } String requestKey = getRequestKey();