Browse Source
fix first-account crash due to backup?
renovate/org.robolectric-robolectric-4.x
Austin Huang
3 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
1 changed files with
1 additions and
3 deletions
-
app/src/main/java/awais/instagrabber/backup/BarinstaBackupAgent.kt
|
|
@ -10,9 +10,7 @@ import awais.instagrabber.utils.Utils.settingsHelper |
|
|
|
|
|
|
|
class BarinstaBackupAgent : BackupAgent() { |
|
|
|
override fun onFullBackup(data: FullBackupDataOutput?) { |
|
|
|
if (data != null && settingsHelper.getBoolean(PreferenceKeys.PREF_AUTO_BACKUP_ENABLED)) { |
|
|
|
super.onFullBackup(data) |
|
|
|
} |
|
|
|
super.onFullBackup(if (settingsHelper.getBoolean(PreferenceKeys.PREF_AUTO_BACKUP_ENABLED)) data else null) |
|
|
|
} |
|
|
|
|
|
|
|
// no key-value backups |
|
|
|