added stickers background if wallpaper is not null

This commit is contained in:
gdlbo
2022-07-11 19:28:48 +03:00
parent f9b02b1cce
commit 81bc85a0aa
5 changed files with 23 additions and 0 deletions
@@ -1,6 +1,7 @@
package ru.vtosters.lite.utils;
import static android.view.View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR;
import static ru.vtosters.lite.ui.wallpapers.WallpapersHooks.getWallpaper;
import static ru.vtosters.lite.utils.Globals.edit;
import static ru.vtosters.lite.utils.Globals.getCenterScreenCoords;
import static ru.vtosters.lite.utils.Globals.getCurrentActivity;
@@ -302,6 +303,12 @@ public class Themes{
return R.style.Theme_MaterialComponents_Light_Dialog_Alert;
} // Android Support color injector + accent color checker
public static String getBackgroundStickers() {
if (getWallpaper() != null) {
return "images_with_background";
}
return "images";
}
public static void setNavbarColor(Window window, int i){
if(navbar()){
@@ -47,6 +47,10 @@
const-string v0, "images"
invoke-static {}, Lru/vtosters/lite/utils/Themes;->getBackgroundStickers()Ljava/lang/String;
move-result-object v0
.line 2
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
@@ -4015,6 +4015,10 @@
const-string v4, "images"
invoke-static {}, Lru/vtosters/lite/utils/Themes;->getBackgroundStickers()Ljava/lang/String;
move-result-object v4
invoke-virtual {p1, v4}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
move-result-object v4
@@ -622,6 +622,10 @@
const-string v4, "images"
invoke-static {}, Lru/vtosters/lite/utils/Themes;->getBackgroundStickers()Ljava/lang/String;
move-result-object v4
invoke-virtual {p1, v4}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
move-result-object v4
@@ -983,6 +983,10 @@
:pswitch_8
const-string v0, "images"
invoke-static {}, Lru/vtosters/lite/utils/Themes;->getBackgroundStickers()Ljava/lang/String;
move-result-object v0
.line 31
invoke-virtual {v7, v0}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;