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

Commit 140bfa28 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix missing read of widget data in adb restore."

parents b8896df5 b9d55570
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -479,6 +479,13 @@ public class PerformAdbRestoreTask implements Runnable {
                        RefactoredBackupManagerService.BACKUP_METADATA_FILENAME)) {
                    // Metadata blobs!
                    tarBackupReader.readMetadata(info);

                    // The following only exist because we want to keep refactoring as safe as
                    // possible, without changing too much.
                    // TODO: Refactor, so that there are no funny things like this.
                    // This is read during TarBackupReader.readMetadata().
                    mWidgetData = tarBackupReader.getWidgetData();

                    tarBackupReader.skipTarPadding(info.size);
                } else {
                    // Non-manifest, so it's actual file data.  Is this a package