mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 22:51:02 +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) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue