Skip to content

Commit 958eb24

Browse files
committed
More migration log messages
1 parent 72bc3c5 commit 958eb24

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/quantumbadger/redreader/activities/MainActivity.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,12 @@ && getIntent().getAction().equals(Intent.ACTION_MAIN)) {
165165

166166
final int appVersion = pInfo.versionCode;
167167

168+
Log.i(TAG, "[Migration] App version: " + appVersion);
169+
168170
if(!sharedPreferences.contains("firstRunMessageShown")) {
169171

172+
Log.i(TAG, "[Migration] Showing first run message");
173+
170174
new AlertDialog.Builder(this)
171175
.setTitle(R.string.firstrun_login_title)
172176
.setMessage(R.string.firstrun_login_message)
@@ -189,6 +193,8 @@ public void onClick(final DialogInterface dialog, final int which) {
189193

190194
final int lastVersion = sharedPreferences.getInt("lastVersion", 0);
191195

196+
Log.i(TAG, "[Migration] Last version: " + lastVersion);
197+
192198
if(lastVersion < 63) {
193199
// Upgrading across the 1.9.0 boundary (when oAuth was introduced)
194200

@@ -434,6 +440,7 @@ public void run() {
434440
}
435441

436442
} else {
443+
Log.i(TAG, "[Migration] Last version not set.");
437444
sharedPreferences.edit().putInt("lastVersion", appVersion).apply();
438445
ChangelogDialog.newInstance().show(getSupportFragmentManager(), null);
439446
}

0 commit comments

Comments
 (0)