fixed #579 (hopefully)
This commit is contained in:
parent
1a783164b4
commit
40d79d0113
|
@ -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")'
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue