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:
parent
53b2db944e
commit
09a3702050
@ -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 ->
|
||||
|
Loading…
Reference in New Issue
Block a user