Merge pull request #4057 from ByteHamster/delete-crash-report-on-upgrade
Delete crash report on upgrade
This commit is contained in:
commit
deb13b8b24
|
@ -5,6 +5,7 @@ import android.content.SharedPreferences;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
|
|
||||||
import de.danoeh.antennapod.BuildConfig;
|
import de.danoeh.antennapod.BuildConfig;
|
||||||
|
import de.danoeh.antennapod.CrashReportWriter;
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
import de.danoeh.antennapod.core.preferences.UserPreferences;
|
import de.danoeh.antennapod.core.preferences.UserPreferences;
|
||||||
import de.danoeh.antennapod.core.preferences.UserPreferences.EnqueueLocation;
|
import de.danoeh.antennapod.core.preferences.UserPreferences.EnqueueLocation;
|
||||||
|
@ -25,6 +26,7 @@ public class PreferenceUpgrader {
|
||||||
|
|
||||||
if (oldVersion != newVersion) {
|
if (oldVersion != newVersion) {
|
||||||
AutoUpdateManager.restartUpdateAlarm(context);
|
AutoUpdateManager.restartUpdateAlarm(context);
|
||||||
|
CrashReportWriter.getFile().delete();
|
||||||
|
|
||||||
upgrade(oldVersion);
|
upgrade(oldVersion);
|
||||||
upgraderPrefs.edit().putInt(PREF_CONFIGURED_VERSION, newVersion).apply();
|
upgraderPrefs.edit().putInt(PREF_CONFIGURED_VERSION, newVersion).apply();
|
||||||
|
|
Loading…
Reference in New Issue