-
Notifications
You must be signed in to change notification settings - Fork 1.3k
For #26424 - Handle special legacy wallpaper cases #27137
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple suggestions, but this otherwise LGTM
if (settings.shouldMigrateLegacyWallpaper) { | ||
migrationHelper.migrateLegacyWallpaper(currentWallpaperName) | ||
migrationHelper.migrateLegacyWallpaper(settings.currentWallpaperName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could move this second (settings.shouldMigrateLegacyWallpaper)
into the first one.
internal fun getMigratedWallpaperName(wallpaperName: String) = | ||
if (wallpaperName == beachVibeName) { | ||
"beach-vibes" | ||
} else { | ||
wallpaperName | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we will also want to update settings
with the new name.
@@ -29,6 +35,21 @@ class LegacyWallpaperMigration( | |||
suspend fun migrateLegacyWallpaper( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could potentially update this function to return the migrated (or the same, if unchanged) name instead of splitting the behavior into two functions.
fa82f68
to
7a4a5b0
Compare
7a4a5b0
to
742fb80
Compare
Latest updates look good! Please land when able, we will want to uplift this for 106 |
@mergify backport releases_v106.0.0 |
✅ Backports have been created
|
Handle special cases for drawable legacy wallpapers and "beach-vibe" wallpaper which is named "beach-vibes" in V2, according to comment.
Videos of upgrading from 105 to 106:
device-2022-09-23-180025.mp4
device-2022-09-23-171746.mp4
Pull Request checklist
QA
To download an APK when reviewing a PR (after all CI tasks finished running):
Checks
at the top of the PR page.firefoxci-taskcluster
group on the left to expand all tasks.build-debug
task.View task in Taskcluster
in the newDETAILS
section.GitHub Automation
Fixes #26424