diff --git a/app/build.gradle b/app/build.gradle index 143504e3b..4a2ca7817 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,7 +8,7 @@ android { applicationId "fr.gaulupeau.apps.InThePoche" minSdkVersion 8 targetSdkVersion 23 - versionCode 15 + versionCode 16 versionName "1.9" } diff --git a/app/src/main/java/fr/gaulupeau/apps/Poche/ui/SettingsActivity.java b/app/src/main/java/fr/gaulupeau/apps/Poche/ui/SettingsActivity.java index db7f9d587..803e5faa9 100644 --- a/app/src/main/java/fr/gaulupeau/apps/Poche/ui/SettingsActivity.java +++ b/app/src/main/java/fr/gaulupeau/apps/Poche/ui/SettingsActivity.java @@ -2,6 +2,7 @@ import android.app.ProgressDialog; import android.content.DialogInterface; +import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.support.v7.app.AlertDialog; @@ -44,6 +45,7 @@ public class SettingsActivity extends BaseActionBarActivity { EditText httpAuthUsername; EditText httpAuthPassword; ProgressDialog progressDialog; + Intent starterIntent; private Settings settings; private WallabagSettings wallabagSettings; @@ -79,7 +81,7 @@ protected void onCreate(Bundle savedInstanceState) { allCerts.setChecked(settings.getBoolean(Settings.ALL_CERTS, false)); highContrast.setChecked(settings.getBoolean(Settings.HIGH_CONTRAST, android.os.Build.MODEL.equals("NOOK"))); - nightmode.setChecked(settings.getBoolean(Settings.NIGHTMODE,false)); + nightmode.setChecked(settings.getBoolean(Settings.NIGHTMODE, false)); listLimit.setText(String.valueOf(settings.getInt(Settings.LIST_LIMIT, 50))); username = (EditText) findViewById(R.id.username); @@ -157,6 +159,7 @@ public void onClick(View v) { }); btnDone = (Button) findViewById(R.id.btnDone); + starterIntent = new Intent(this,ArticlesListActivity.class); btnDone.setOnClickListener(new OnClickListener() { public void onClick(View v) { wallabagSettings.wallabagURL = editPocheUrl.getText().toString(); @@ -181,6 +184,7 @@ public void onClick(View v) { if (wallabagSettings.isValid()) { wallabagSettings.save(); finish(); + startActivity(starterIntent); } } }); diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 61d7307b3..abbdbb4c6 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -11,9 +11,6 @@ GAULUPEAU Jonathan — 2013 Sauvegarder Votre URL wallabag: Exemples:\nhttp://wallabag.example.com\nhttp://www.example.com/wallabag -Liste des articles - %1$d non-lus -Synchronisation rapide -Synchronisation Marquer comme lu Marquer comme non lu Archivé @@ -128,4 +125,6 @@ GAULUPEAU Jonathan — 2013 Mot de passe Authentification HTTP Identifiant Authentification HTTP Mode nuit + Il n\'y pas d\'article suivant dans la liste actuelle + Il n\'y pas d\'article précédent dans la liste actuelle