Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0af99b97 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Do not force reload current wallpaper info every time" into udc-dev

parents 504a0833 a3e38fe7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ class ClockSettingsFragment : AppbarFragment() {
                                    R.string.lock_screen_preview_provider_authority,
                                ),
                        ),
                    wallpaperInfoProvider = {
                    wallpaperInfoProvider = { forceReload ->
                        suspendCancellableCoroutine { continuation ->
                            injector
                                .getCurrentWallpaperInfoFactory(context)
@@ -90,7 +90,7 @@ class ClockSettingsFragment : AppbarFragment() {
                                            null,
                                        )
                                    },
                                    /* forceRefresh= */ true,
                                    forceReload,
                                )
                        }
                    },
+4 −4
Original line number Diff line number Diff line
@@ -98,13 +98,13 @@ class ColorPickerFragment : AppbarFragment() {
                                        R.string.lock_screen_preview_provider_authority,
                                    ),
                        ),
                    wallpaperInfoProvider = {
                    wallpaperInfoProvider = { forceReload ->
                        suspendCancellableCoroutine { continuation ->
                            wallpaperInfoFactory.createCurrentWallpaperInfos(
                                { homeWallpaper, lockWallpaper, _ ->
                                    continuation.resume(lockWallpaper ?: homeWallpaper, null)
                                },
                                /* forceRefresh= */ true,
                                forceReload,
                            )
                        }
                    },
@@ -133,13 +133,13 @@ class ColorPickerFragment : AppbarFragment() {
                                        R.string.grid_control_metadata_name,
                                    ),
                        ),
                    wallpaperInfoProvider = {
                    wallpaperInfoProvider = { forceReload ->
                        suspendCancellableCoroutine { continuation ->
                            wallpaperInfoFactory.createCurrentWallpaperInfos(
                                { homeWallpaper, lockWallpaper, _ ->
                                    continuation.resume(homeWallpaper ?: lockWallpaper, null)
                                },
                                /* forceRefresh= */ true,
                                forceReload,
                            )
                        }
                    },
+2 −2
Original line number Diff line number Diff line
@@ -91,13 +91,13 @@ private constructor(
                    )
                }
            },
            wallpaperInfoProvider = {
            wallpaperInfoProvider = { forceReload ->
                suspendCancellableCoroutine { continuation ->
                    wallpaperInfoFactory.createCurrentWallpaperInfos(
                        { homeWallpaper, lockWallpaper, _ ->
                            continuation.resume(lockWallpaper ?: homeWallpaper, null)
                        },
                        /* forceRefresh= */ true,
                        forceReload,
                    )
                }
            },