1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-12-23 05:16:58 +00:00

fix first-account crash due to backup?

This commit is contained in:
Austin Huang 2021-06-22 12:09:52 -04:00
parent 65624f0b42
commit ac4bb2e027
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -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