fixed statusbar in audioplayer
This commit is contained in:
@@ -380,6 +380,16 @@ public class ThemesUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static void setStatusBarColor(Window window) {
|
||||
if (isDarkTheme()) {
|
||||
View view = window.getDecorView();
|
||||
view.setSystemUiVisibility(view.getSystemUiVisibility() & ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
||||
} else {
|
||||
View view = window.getDecorView();
|
||||
view.setSystemUiVisibility(view.getSystemUiVisibility() | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
||||
}
|
||||
}
|
||||
|
||||
public static String hex(int i) {
|
||||
return String.format("#%06X", i & 16777215);
|
||||
} // Get color as hex string
|
||||
|
||||
@@ -166,6 +166,8 @@
|
||||
|
||||
invoke-static {v0, v1}, Lru/vtosters/lite/utils/ThemesUtils;->setNavbarColor(Landroid/view/Window;I)V
|
||||
|
||||
invoke-static {v0}, Lru/vtosters/lite/utils/ThemesUtils;->setStatusBarColor(Landroid/view/Window;)V
|
||||
|
||||
.line 9
|
||||
:cond_2
|
||||
invoke-static {p0}, Lcom/vk/core/ui/themes/VKThemeHelper;->d(Landroid/app/Activity;)V
|
||||
|
||||
Reference in New Issue
Block a user