|
23 | 23 | import static android.os.Build.VERSION.SDK_INT; |
24 | 24 | import static android.os.Build.VERSION_CODES.JELLY_BEAN_MR1; |
25 | 25 | import static android.os.Build.VERSION_CODES.KITKAT; |
26 | | -import static android.os.Build.VERSION_CODES.KITKAT_WATCH; |
27 | 26 | import static android.os.Build.VERSION_CODES.LOLLIPOP; |
28 | 27 | import static android.os.Build.VERSION_CODES.M; |
29 | 28 | import static android.os.Build.VERSION_CODES.N; |
|
55 | 54 | import static com.amaze.filemanager.ui.dialogs.SftpConnectDialog.ARG_USERNAME; |
56 | 55 | import static com.amaze.filemanager.ui.fragments.FtpServerFragment.REQUEST_CODE_SAF_FTP; |
57 | 56 | import static com.amaze.filemanager.ui.fragments.preferencefragments.PreferencesConstants.PREFERENCE_BOOKMARKS_ADDED; |
58 | | -import static com.amaze.filemanager.ui.fragments.preferencefragments.PreferencesConstants.PREFERENCE_COLORED_NAVIGATION; |
59 | 57 | import static com.amaze.filemanager.ui.fragments.preferencefragments.PreferencesConstants.PREFERENCE_NEED_TO_SET_HOME; |
60 | 58 | import static com.amaze.filemanager.ui.fragments.preferencefragments.PreferencesConstants.PREFERENCE_VIEW; |
61 | 59 |
|
|
132 | 130 | import com.amaze.filemanager.ui.fragments.data.MainFragmentViewModel; |
133 | 131 | import com.amaze.filemanager.ui.fragments.preferencefragments.PreferencesConstants; |
134 | 132 | import com.amaze.filemanager.ui.strings.StorageNamingHelper; |
135 | | -import com.amaze.filemanager.ui.theme.AppTheme; |
136 | 133 | import com.amaze.filemanager.ui.views.CustomZoomFocusChange; |
137 | 134 | import com.amaze.filemanager.ui.views.appbar.AppBar; |
138 | 135 | import com.amaze.filemanager.ui.views.drawer.Drawer; |
|
155 | 152 | import com.leinardi.android.speeddial.SpeedDialActionItem; |
156 | 153 | import com.leinardi.android.speeddial.SpeedDialOverlayLayout; |
157 | 154 | import com.leinardi.android.speeddial.SpeedDialView; |
158 | | -import com.readystatesoftware.systembartint.SystemBarTintManager; |
159 | 155 | import com.topjohnwu.superuser.Shell; |
160 | 156 |
|
161 | 157 | import android.annotation.SuppressLint; |
@@ -1800,36 +1796,6 @@ public void updateViews(ColorDrawable colorDrawable) { |
1800 | 1796 | mainActivity.getSupportActionBar().setBackgroundDrawable(colorDrawable); |
1801 | 1797 |
|
1802 | 1798 | drawer.setBackgroundColor(colorDrawable.getColor()); |
1803 | | - |
1804 | | - if (SDK_INT >= LOLLIPOP) { |
1805 | | - // for lollipop devices, the status bar color |
1806 | | - mainActivity.getWindow().setStatusBarColor(colorDrawable.getColor()); |
1807 | | - if (getBoolean(PREFERENCE_COLORED_NAVIGATION)) { |
1808 | | - mainActivity |
1809 | | - .getWindow() |
1810 | | - .setNavigationBarColor(PreferenceUtils.getStatusColor(colorDrawable.getColor())); |
1811 | | - } else { |
1812 | | - if (getAppTheme().equals(AppTheme.LIGHT)) { |
1813 | | - mainActivity |
1814 | | - .getWindow() |
1815 | | - .setNavigationBarColor(Utils.getColor(this, android.R.color.white)); |
1816 | | - } else if (getAppTheme().equals(AppTheme.BLACK)) { |
1817 | | - mainActivity |
1818 | | - .getWindow() |
1819 | | - .setNavigationBarColor(Utils.getColor(this, android.R.color.black)); |
1820 | | - } else { |
1821 | | - mainActivity |
1822 | | - .getWindow() |
1823 | | - .setNavigationBarColor(Utils.getColor(this, R.color.holo_dark_background)); |
1824 | | - } |
1825 | | - } |
1826 | | - } else if (SDK_INT == KITKAT_WATCH || SDK_INT == KITKAT) { |
1827 | | - |
1828 | | - // for kitkat devices, the status bar color |
1829 | | - SystemBarTintManager tintManager = new SystemBarTintManager(this); |
1830 | | - tintManager.setStatusBarTintEnabled(true); |
1831 | | - tintManager.setStatusBarTintColor(colorDrawable.getColor()); |
1832 | | - } |
1833 | 1799 | } |
1834 | 1800 |
|
1835 | 1801 | void initialiseFab() { |
|
0 commit comments