Correction bug Sync

This commit is contained in:
GAULUPEAU Jonathan 2014-01-04 17:36:40 +01:00
parent 6f077b2346
commit d6f6aba6f4
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="fr.gaulupeau.apps.InThePoche"
android:versionCode="4"
android:versionName="1.5" xmlns:android="http://schemas.android.com/apk/res/android">
android:versionName="1.5.1" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET"/>

View File

@ -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