added stickers background if wallpaper is not null
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user