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

Commit c9e584b4 authored by Christopher Tate's avatar Christopher Tate Committed by Chris Tate
Browse files

Only invoke k/v helpers during k/v operations

In particular, don't try to call the k/v wallpaper restore helper's
onRestoreFinished() if we are actually doing a full-data restore.

Bug 28132784

Change-Id: I2eaf748f6d54601f0ca195ae2781aa177daf0b93
parent 4d07c889
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -183,6 +183,9 @@ public class SystemBackupAgent extends BackupAgentHelper {

    @Override
    public void onRestoreFinished() {
        // helper will be null following 'adb restore' or other full-data operation
        if (mWallpaperHelper != null) {
            mWallpaperHelper.onRestoreFinished();
        }
    }
}