improving theme
This commit is contained in:
parent
476b335a79
commit
a998e690ab
|
@ -167,7 +167,7 @@ public class ThemeUtils implements Constants {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void applyWindowBackground(Context context, Window window, int theme, String option, int alpha) {
|
public static void applyWindowBackground(Context context, Window window, int theme, String option, int alpha) {
|
||||||
if (window.isFloating()) return;
|
if (isWindowFloating(context, theme)) return;
|
||||||
if (VALUE_THEME_BACKGROUND_TRANSPARENT.equals(option)) {
|
if (VALUE_THEME_BACKGROUND_TRANSPARENT.equals(option)) {
|
||||||
window.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER);
|
window.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER);
|
||||||
window.setBackgroundDrawable(ThemeUtils.getWindowBackgroundApplyAlpha(context, alpha));
|
window.setBackgroundDrawable(ThemeUtils.getWindowBackgroundApplyAlpha(context, alpha));
|
||||||
|
|
Loading…
Reference in New Issue