Remove obsolete min SDK checks

This commit is contained in:
MM20
2021-09-23 16:56:18 +02:00
parent b83c70e3b4
commit d19b16f7b3
3 changed files with 13 additions and 24 deletions
@@ -61,16 +61,14 @@ object WallpaperBlur {
val out = FileOutputStream(File(context.cacheDir, "wallpaper"))
resource.compress(Bitmap.CompressFormat.PNG, 100, out)
out.close()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
context.getSharedPreferences("wallpaper", Context.MODE_PRIVATE)
.edit()
.putInt(
"last_wallpaper_id", wm.getWallpaperId(
WallpaperManager.FLAG_SYSTEM
)
context.getSharedPreferences("wallpaper", Context.MODE_PRIVATE)
.edit()
.putInt(
"last_wallpaper_id", wm.getWallpaperId(
WallpaperManager.FLAG_SYSTEM
)
.apply()
}
)
.apply()
if (LauncherPreferences.instance.blurCards && LauncherPreferences.instance.cardOpacity < 0xFF) {
blurredWallpaper = resource