@@ -41,15 +41,15 @@ public void onCreate(Bundle savedInstanceState) {
4141
4242 if (Build .VERSION .SDK_INT >= 30 ) {
4343 getWindow ().setDecorFitsSystemWindows (false );
44- }
4544
46- browser .setOnApplyWindowInsetsListener (new View .OnApplyWindowInsetsListener () {
47- @ Override
48- public WindowInsets onApplyWindowInsets (View v , WindowInsets insets ) {
49- v .setPadding (insets .getSystemWindowInsetLeft (), insets .getSystemWindowInsetTop (), insets .getSystemWindowInsetRight (), insets .getSystemWindowInsetBottom ());
50- return insets .consumeSystemWindowInsets ();
51- }
52- });
45+ browser .setOnApplyWindowInsetsListener (new View .OnApplyWindowInsetsListener () {
46+ @ Override
47+ public WindowInsets onApplyWindowInsets (View v , WindowInsets insets ) {
48+ v .setPadding (insets .getSystemWindowInsetLeft (), insets .getSystemWindowInsetTop (), insets .getSystemWindowInsetRight (), insets .getSystemWindowInsetBottom ());
49+ return insets .consumeSystemWindowInsets ();
50+ }
51+ });
52+ }
5353
5454 setSystemTheme (theme .get ("primaryColor" ));
5555 }
@@ -76,12 +76,12 @@ private void setSystemTheme(int systemBarColor) {
7676 window
7777 .getClass ()
7878 .getMethod ("setNavigationBarColor" , int .class )
79- .invoke (window , Color . TRANSPARENT );
79+ .invoke (window , systemBarColor );
8080
8181 window
8282 .getClass ()
8383 .getMethod ("setStatusBarColor" , int .class )
84- .invoke (window , Color . TRANSPARENT );
84+ .invoke (window , systemBarColor );
8585
8686 if (Build .VERSION .SDK_INT < 30 ) {
8787 setStatusBarStyle (window );
0 commit comments