fixed msgs
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user