|
|
@ -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();
|
|
|
|
|
|
|
|
|
|
|
|