diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 539c7b4..7ea78af 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,7 +1,7 @@ + android:versionName="1.5.1" xmlns:android="http://schemas.android.com/apk/res/android"> diff --git a/src/fr/gaulupeau/apps/Poche/Poche.java b/src/fr/gaulupeau/apps/Poche/Poche.java index 718ca99..98da95a 100644 --- a/src/fr/gaulupeau/apps/Poche/Poche.java +++ b/src/fr/gaulupeau/apps/Poche/Poche.java @@ -150,7 +150,7 @@ import static fr.gaulupeau.apps.Poche.ArticlesSQLiteOpenHelper.ARTICLE_SYNC; // Vérification de la connectivité Internet final ConnectivityManager conMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); final NetworkInfo activeNetwork = conMgr.getActiveNetworkInfo(); - if (pocheUrl != "http://") { + if (pocheUrl == "http://") { showToast(getString(R.string.txtConfigNotSet)); } else if (activeNetwork != null && activeNetwork.isConnected()) { // Exécution de la synchro en arrière-plan