Merge "Adds more in depth logging of Launcher restore functionality" into main

This commit is contained in:
Charlie Anderson
2023-12-12 20:30:19 +00:00
committed by Android (Google) Code Review
6 changed files with 107 additions and 72 deletions

View File

@@ -298,11 +298,15 @@ public class InvariantDeviceProfile {
* Reinitialize the current grid after a restore, where some grids might now be disabled.
*/
public void reinitializeAfterRestore(Context context) {
FileLog.d(TAG, "Reinitializing grid after restore");
String currentGridName = getCurrentGridName(context);
String currentDbFile = dbFile;
String newGridName = initGrid(context, currentGridName);
String newDbFile = dbFile;
FileLog.d(TAG, "Reinitializing grid after restore."
+ " currentGridName=" + currentGridName
+ ", currentDbFile=" + currentDbFile
+ ", newGridName=" + newGridName
+ ", newDbFile=" + newDbFile);
if (!newDbFile.equals(currentDbFile)) {
FileLog.d(TAG, "Restored grid is disabled : " + currentGridName
+ ", migrating to: " + newGridName