2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

Bug 1809809 - change onSelectWallpaper comparison to name of selected wallpaper

This commit is contained in:
Harrison Oglesby 2023-03-23 10:28:11 -07:00 committed by mergify[bot]
parent 4b3f89f810
commit b2a14feaf4

View File

@ -70,7 +70,7 @@ class WallpaperSettingsFragment : Fragment() {
wallpaperUseCases.loadThumbnail(it) wallpaperUseCases.loadThumbnail(it)
}, },
onSelectWallpaper = { onSelectWallpaper = {
if (it != currentWallpaper) { if (it.name != currentWallpaper.name) {
coroutineScope.launch { coroutineScope.launch {
val result = wallpaperUseCases.selectWallpaper(it) val result = wallpaperUseCases.selectWallpaper(it)
onWallpaperSelected(it, result, requireView()) onWallpaperSelected(it, result, requireView())