diff options
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/util/SettingsBackupAgent.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/util/SettingsBackupAgent.java b/app/src/main/java/github/daneren2005/dsub/util/SettingsBackupAgent.java index 9b6a20a5..def97cac 100644 --- a/app/src/main/java/github/daneren2005/dsub/util/SettingsBackupAgent.java +++ b/app/src/main/java/github/daneren2005/dsub/util/SettingsBackupAgent.java @@ -23,6 +23,9 @@ import android.app.backup.BackupDataInput; import android.app.backup.SharedPreferencesBackupHelper; import android.os.ParcelFileDescriptor; +import java.io.IOError; +import java.io.IOException; + import github.daneren2005.dsub.util.Constants; public class SettingsBackupAgent extends BackupAgentHelper { @@ -34,7 +37,8 @@ public class SettingsBackupAgent extends BackupAgentHelper { } @Override - public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) { + public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) throws IOException{ + super.onRestore(data, appVersionCode, newState); Util.getPreferences(this).edit().remove(Constants.PREFERENCES_KEY_CACHE_LOCATION).apply(); } } |