Update WallpapersHooks.java

This commit is contained in:
gdlbo
2022-08-26 22:10:43 +03:00
parent a4c6af8ace
commit 8ee29b4b83
@@ -102,11 +102,8 @@ public class WallpapersHooks {
var file = getWallpaperFile(); var file = getWallpaperFile();
if (file.exists() && eligibleWallpaperFile(file)) { if (file.exists() && eligibleWallpaperFile(file)) {
var compressed = compress(file); if (getBoolValue("compresswp", true)) {
if (compressed == null) { return compress(file).getAbsolutePath();
return "default";
} else if (getBoolValue("compresswp", true)) {
return compressed.getAbsolutePath();
} else { } else {
return file.getAbsolutePath(); return file.getAbsolutePath();
} }