diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-12-08 17:43:41 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-12-08 17:43:41 -0800 |
commit | ec1a894b950dc4ccf7122487e8fac1e7f3c5ee5f (patch) | |
tree | 73961cd6505a1e258da18857bb66e6a7900b7b96 /app/src/main/java | |
parent | d9cf55f61b76d7d6c10fe9aa3a23d5c0b91b99dd (diff) | |
download | dsub-ec1a894b950dc4ccf7122487e8fac1e7f3c5ee5f.tar.gz dsub-ec1a894b950dc4ccf7122487e8fac1e7f3c5ee5f.tar.bz2 dsub-ec1a894b950dc4ccf7122487e8fac1e7f3c5ee5f.zip |
Forgot to do super.onRestore
Diffstat (limited to 'app/src/main/java')
-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(); } } |