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

Commit 6067d798 authored by Christopher Tate's avatar Christopher Tate Committed by Christopher Tate
Browse files

Actually tell the widget service that restore is starting

Before beginning a full-system restore we need to tell the widget service,
so that it can properly start remapping IDs from the ground state.

Bug 17869323

Change-Id: I152257563f5b52cae67244e936bc2c44ced7618d
parent 3dd06d90
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -7048,6 +7048,11 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF
        private  void startRestore() {
            sendStartRestore(mAcceptSet.size());

            // If we're starting a full-system restore, set up to begin widget ID remapping
            if (mIsSystemRestore) {
                AppWidgetBackupBridge.restoreStarting(UserHandle.USER_OWNER);
            }

            try {
                String transportDir = mTransport.transportDirName();
                mStateDir = new File(mBaseStateDir, transportDir);