|
@@ -97,7 +97,7 @@ public class Presenter {
|
97
|
97
|
Window window = activity.getWindow();
|
98
|
98
|
if (options.translucent.isTrue()) {
|
99
|
99
|
window.setFlags(FLAG_TRANSLUCENT_STATUS, FLAG_TRANSLUCENT_STATUS);
|
100
|
|
- } else {
|
|
100
|
+ } else if (StatusBarUtils.isTranslucent(window)) {
|
101
|
101
|
window.clearFlags(FLAG_TRANSLUCENT_STATUS);
|
102
|
102
|
}
|
103
|
103
|
}
|
|
@@ -132,7 +132,7 @@ public class Presenter {
|
132
|
132
|
}
|
133
|
133
|
}
|
134
|
134
|
|
135
|
|
- private static void clearDarkTextColorScheme(View view) {
|
|
135
|
+ private void clearDarkTextColorScheme(View view) {
|
136
|
136
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) return;
|
137
|
137
|
int flags = view.getSystemUiVisibility();
|
138
|
138
|
flags &= ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
|
|
@@ -168,7 +168,7 @@ public class Presenter {
|
168
|
168
|
Window window = activity.getWindow();
|
169
|
169
|
if (options.translucent.isTrue()) {
|
170
|
170
|
window.setFlags(FLAG_TRANSLUCENT_STATUS, FLAG_TRANSLUCENT_STATUS);
|
171
|
|
- } else if (options.translucent.isFalse()) {
|
|
171
|
+ } else if (options.translucent.isFalse() && StatusBarUtils.isTranslucent(window)) {
|
172
|
172
|
window.clearFlags(FLAG_TRANSLUCENT_STATUS);
|
173
|
173
|
}
|
174
|
174
|
}
|