Merge pull request #4057 from ByteHamster/delete-crash-report-on-upgrade

Delete crash report on upgrade
This commit is contained in:
H. Lehmann 2020-04-16 17:08:13 +02:00 committed by GitHub
commit deb13b8b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import de.danoeh.antennapod.BuildConfig;
import de.danoeh.antennapod.CrashReportWriter;
import de.danoeh.antennapod.R;
import de.danoeh.antennapod.core.preferences.UserPreferences;
import de.danoeh.antennapod.core.preferences.UserPreferences.EnqueueLocation;
@ -25,6 +26,7 @@ public class PreferenceUpgrader {
if (oldVersion != newVersion) {
AutoUpdateManager.restartUpdateAlarm(context);
CrashReportWriter.getFile().delete();
upgrade(oldVersion);
upgraderPrefs.edit().putInt(PREF_CONFIGURED_VERSION, newVersion).apply();