Merge "fix the issue widget id wasn't being migrated in backup"

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2020-11-23 17:49:16 +00:00
commit cd0c18460a
1 file changed
+2 -1
@@ -106,7 +106,8 @@ public class AppWidgetsRestoredReceiver extends BroadcastReceiver {
}
}
// attempt to update widget id in backup table as well
new ContentWriter(context, ContentWriter.CommitParams.backupCommitParams(where, args))
new ContentWriter(context, ContentWriter.CommitParams.backupCommitParams(
"appWidgetId=? and profileId=?", args))
.put(LauncherSettings.Favorites.APPWIDGET_ID, newWidgetIds[i])
.put(LauncherSettings.Favorites.RESTORED, state)
.commit();