Browse Source

fix first-account crash due to backup?

renovate/org.robolectric-robolectric-4.x
Austin Huang 3 years ago
parent
commit
ac4bb2e027
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 4
      app/src/main/java/awais/instagrabber/backup/BarinstaBackupAgent.kt

4
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

Loading…
Cancel
Save