From 047bf7675b3d9601112323a7e536881fc2100844 Mon Sep 17 00:00:00 2001 From: Vishnu Sanal T Date: Tue, 15 Oct 2024 20:33:59 +0530 Subject: [PATCH] fix #4211: removed setting the nav bar colors since the default android colors were better than the ones we set + they were leading to usability issues too. --- .../superclasses/ThemedActivity.java | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/app/src/main/java/com/amaze/filemanager/ui/activities/superclasses/ThemedActivity.java b/app/src/main/java/com/amaze/filemanager/ui/activities/superclasses/ThemedActivity.java index 7bfd377d2e..7af6540cc9 100644 --- a/app/src/main/java/com/amaze/filemanager/ui/activities/superclasses/ThemedActivity.java +++ b/app/src/main/java/com/amaze/filemanager/ui/activities/superclasses/ThemedActivity.java @@ -141,36 +141,6 @@ public void initStatusBarResources(View parentView) { } if (getBoolean(PREFERENCE_COLORED_NAVIGATION)) { window.setNavigationBarColor(PreferenceUtils.getStatusColor(getPrimary())); - } else { - if (getAppTheme().equals(AppTheme.LIGHT)) { - // do nothing: since the default android colors were better than the ones we set. - // setting white led to usability issues too. ref: #4211 - } else { - - if (SDK_INT >= Build.VERSION_CODES.R) { - WindowInsetsController windowInsetController = getWindow().getInsetsController(); - if (windowInsetController != null) - windowInsetController.setSystemBarsAppearance( - WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS, - WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS); - - if (getAppTheme().equals(AppTheme.BLACK)) { - getWindow().setNavigationBarColor(Utils.getColor(this, android.R.color.black)); - } else { - getWindow().setNavigationBarColor(Utils.getColor(this, R.color.holo_dark_background)); - } - - } else if (SDK_INT >= Build.VERSION_CODES.O) { - window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR); - - if (getAppTheme().equals(AppTheme.BLACK)) { - getWindow().setNavigationBarColor(Utils.getColor(this, android.R.color.black)); - } else { - getWindow().setNavigationBarColor(Utils.getColor(this, R.color.holo_dark_background)); - } - } - - } } } else if (SDK_INT == Build.VERSION_CODES.KITKAT_WATCH || SDK_INT == Build.VERSION_CODES.KITKAT) {