mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Log upgrades
This commit is contained in:
parent
f001e1bf37
commit
eae3c254ac
1 changed files with 2 additions and 1 deletions
|
@ -158,7 +158,8 @@ public class ApplicationEx extends Application {
|
||||||
static void upgrade(Context context) {
|
static void upgrade(Context context) {
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
int version = prefs.getInt("version", BuildConfig.VERSION_CODE);
|
int version = prefs.getInt("version", BuildConfig.VERSION_CODE);
|
||||||
Log.i("Upgrading from " + version + " to " + BuildConfig.VERSION_CODE);
|
if (version != BuildConfig.VERSION_CODE)
|
||||||
|
EntityLog.log(context, "Upgrading from " + version + " to " + BuildConfig.VERSION_CODE);
|
||||||
|
|
||||||
SharedPreferences.Editor editor = prefs.edit();
|
SharedPreferences.Editor editor = prefs.edit();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue