diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 463de49f..10a13213 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="86" + android:versionName="0.6.10" > diff --git a/res/values/strings.xml b/res/values/strings.xml index 5057d690..137af4d9 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -121,4 +121,6 @@ Publish with note Close feed Close article + Open preferences + Please fill in your tt-rss server information such as URL, login, and password. \ No newline at end of file diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index bc9883c4..c3a7ea21 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -709,7 +709,7 @@ public class MainActivity extends CommonActivity implements OnlineServices { if (m_sessionId != null) { loginSuccess(); } else { - login(); + //login(); -- handled in onResume() } } } @@ -1957,11 +1957,26 @@ public class MainActivity extends CommonActivity implements OnlineServices { setLoadingStatus(R.string.login_need_configure, false); - // launch preferences - Intent intent = new Intent(MainActivity.this, - PreferencesActivity.class); - startActivityForResult(intent, 0); - + AlertDialog.Builder builder = new AlertDialog.Builder(this); + builder.setMessage(R.string.dialog_need_configure_prompt) + .setCancelable(false) + .setPositiveButton(R.string.dialog_open_preferences, new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int id) { + // launch preferences + + Intent intent = new Intent(MainActivity.this, + PreferencesActivity.class); + startActivityForResult(intent, 0); + } + }) + .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int id) { + dialog.cancel(); + } + }); + AlertDialog alert = builder.create(); + alert.show(); + } else { LoginRequest ar = new LoginRequest(getApplicationContext());