File tree 2 files changed +6
-2
lines changed
utilcode/lib/src/main/java/com/blankj/utilcode/util
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,12 @@ private static void transparentStatusBar(final Activity activity) {
378
378
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP ) {
379
379
window .addFlags (WindowManager .LayoutParams .FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS );
380
380
int option = View .SYSTEM_UI_FLAG_LAYOUT_STABLE | View .SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN ;
381
- window .getDecorView ().setSystemUiVisibility (option );
381
+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .M ) {
382
+ int vis = window .getDecorView ().getSystemUiVisibility () & View .SYSTEM_UI_FLAG_LIGHT_STATUS_BAR ;
383
+ window .getDecorView ().setSystemUiVisibility (option | vis );
384
+ } else {
385
+ window .getDecorView ().setSystemUiVisibility (option );
386
+ }
382
387
window .setStatusBarColor (Color .TRANSPARENT );
383
388
} else {
384
389
window .addFlags (WindowManager .LayoutParams .FLAG_TRANSLUCENT_STATUS );
Original file line number Diff line number Diff line change @@ -226,7 +226,6 @@ public static class Config {
226
226
private int connectTimeout = CONNECT_TIMEOUT_TIME ;
227
227
private int readTimeout = READ_TIMEOUT_TIME ;
228
228
private boolean useCaches = false ;
229
- private socke
230
229
}
231
230
232
231
public static class Dispatcher {
You can’t perform that action at this time.
0 commit comments