diff --git a/twidere/build.gradle b/twidere/build.gradle index 0d1ddd331..7669cc968 100644 --- a/twidere/build.gradle +++ b/twidere/build.gradle @@ -28,8 +28,8 @@ android { applicationId "org.mariotaku.twidere" minSdkVersion 14 targetSdkVersion 24 - versionCode 199 - versionName "3.1.10" + versionCode 200 + versionName "3.1.11" multiDexEnabled true buildConfigField 'boolean', 'LEAK_CANARY_ENABLED', 'Boolean.parseBoolean("false")' diff --git a/twidere/src/main/java/org/mariotaku/twidere/util/ThemeUtils.java b/twidere/src/main/java/org/mariotaku/twidere/util/ThemeUtils.java index d4209f2b2..128ce81d6 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/util/ThemeUtils.java +++ b/twidere/src/main/java/org/mariotaku/twidere/util/ThemeUtils.java @@ -104,8 +104,9 @@ public class ThemeUtils implements Constants { } public static void applyWindowBackground(@NonNull Context context, @NonNull Window window, String option, int alpha) { - if (isWindowFloating(context)) return; - if (VALUE_THEME_BACKGROUND_TRANSPARENT.equals(option)) { + if (isWindowFloating(context)) { + window.setBackgroundDrawable(getWindowBackground(context)); + } else if (VALUE_THEME_BACKGROUND_TRANSPARENT.equals(option)) { window.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER); window.setBackgroundDrawable(getWindowBackgroundFromThemeApplyAlpha(context, alpha)); } else if (VALUE_THEME_BACKGROUND_SOLID.equals(option)) {