fixed msgs

This commit is contained in:
gdlbo
2022-12-26 13:32:30 +03:00
parent af902f945e
commit 6039d0cf43
2 changed files with 6 additions and 2 deletions
@@ -86,7 +86,7 @@ public class WallpapersHooks {
}
public static void setBg(View view) {
if (getWallpaper() != null) {
if (hasWallpapers()) {
((ImageView) view).setImageDrawable(getFilteredFile()); // set picture to background
} else {
view.setBackgroundColor(ThemesUtils.getColorFromAttr(im_bg_chat)); // set default bg color
@@ -103,6 +103,10 @@ public class WallpapersHooks {
return "default";
}
public static boolean hasWallpapers() {
return getWallpaper() != null;
}
public static Drawable getWallpaper() {
if (mWallpaper == null || mUpdateWallpaperRequested) {
String url = getWallpaperUrl();
@@ -341,7 +341,7 @@ public class ThemesUtils {
}
public static String getBackgroundStickers() {
return WallpapersHooks.getWallpaper() != null ? "images_with_background" : "image";
return WallpapersHooks.hasWallpapers() ? "images_with_background" : "images";
}
public static VKTheme getCurrentTheme() {