From def2c5c10a07d14bf06fffa349353187e001538c Mon Sep 17 00:00:00 2001 From: DanielcoderX Date: Sat, 31 Aug 2024 19:31:35 +0330 Subject: [PATCH] fix lint --- app/src/main/java/org/bepass/oblivion/utils/ThemeHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/bepass/oblivion/utils/ThemeHelper.java b/app/src/main/java/org/bepass/oblivion/utils/ThemeHelper.java index d1338ce0..2839657d 100644 --- a/app/src/main/java/org/bepass/oblivion/utils/ThemeHelper.java +++ b/app/src/main/java/org/bepass/oblivion/utils/ThemeHelper.java @@ -92,7 +92,9 @@ public void updateActivityBackground(View view) { } // Configure status bar based on theme - configureStatusBar(view.getContext() instanceof Activity ? (Activity) view.getContext() : null); + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { + configureStatusBar(view.getContext() instanceof Activity ? (Activity) view.getContext() : null); + } } @RequiresApi(api = Build.VERSION_CODES.M) private void configureStatusBar(Activity activity) {