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

Bug 1809809 - do not call onWallpaperSelected if user selects currently set wallpaper

This commit is contained in:
Harrison Oglesby 2023-03-09 12:48:34 -08:00 committed by mergify[bot]
parent 53b2db944e
commit 09a3702050

View File

@ -70,9 +70,11 @@ class WallpaperSettingsFragment : Fragment() {
wallpaperUseCases.loadThumbnail(it)
},
onSelectWallpaper = {
coroutineScope.launch {
val result = wallpaperUseCases.selectWallpaper(it)
onWallpaperSelected(it, result, requireView())
if (it != currentWallpaper) {
coroutineScope.launch {
val result = wallpaperUseCases.selectWallpaper(it)
onWallpaperSelected(it, result, requireView())
}
}
},
onLearnMoreClick = { url, collectionName ->