Delete crash report on upgrade

This commit is contained in:
ByteHamster 2020-04-14 19:44:35 +02:00
parent 8c9e78a417
commit 14b35b03fa
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();