File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
utilcode/lib/src/main/java/com/blankj/utilcode/util Expand file tree Collapse file tree 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) {
378378 if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP ) {
379379 window .addFlags (WindowManager .LayoutParams .FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS );
380380 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+ }
382387 window .setStatusBarColor (Color .TRANSPARENT );
383388 } else {
384389 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 {
226226 private int connectTimeout = CONNECT_TIMEOUT_TIME ;
227227 private int readTimeout = READ_TIMEOUT_TIME ;
228228 private boolean useCaches = false ;
229- private socke
230229 }
231230
232231 public static class Dispatcher {
You can’t perform that action at this time.
0 commit comments