From d6f6aba6f4d4838b4658c0807efc8b789fc1970e Mon Sep 17 00:00:00 2001 From: GAULUPEAU Jonathan Date: Sat, 4 Jan 2014 17:36:40 +0100 Subject: [PATCH] Correction bug Sync --- AndroidManifest.xml | 2 +- src/fr/gaulupeau/apps/Poche/Poche.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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