mirror of
https://github.com/moparisthebest/android-app
synced 2024-11-15 13:25:07 -05:00
Correction bug Sync
This commit is contained in:
parent
6f077b2346
commit
d6f6aba6f4
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest package="fr.gaulupeau.apps.InThePoche"
|
<manifest package="fr.gaulupeau.apps.InThePoche"
|
||||||
android:versionCode="4"
|
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"
|
<uses-sdk android:minSdkVersion="8"
|
||||||
android:targetSdkVersion="8" />
|
android:targetSdkVersion="8" />
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
|
@ -150,7 +150,7 @@ import static fr.gaulupeau.apps.Poche.ArticlesSQLiteOpenHelper.ARTICLE_SYNC;
|
|||||||
// Vérification de la connectivité Internet
|
// Vérification de la connectivité Internet
|
||||||
final ConnectivityManager conMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
|
final ConnectivityManager conMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||||
final NetworkInfo activeNetwork = conMgr.getActiveNetworkInfo();
|
final NetworkInfo activeNetwork = conMgr.getActiveNetworkInfo();
|
||||||
if (pocheUrl != "http://") {
|
if (pocheUrl == "http://") {
|
||||||
showToast(getString(R.string.txtConfigNotSet));
|
showToast(getString(R.string.txtConfigNotSet));
|
||||||
} else if (activeNetwork != null && activeNetwork.isConnected()) {
|
} else if (activeNetwork != null && activeNetwork.isConnected()) {
|
||||||
// Exécution de la synchro en arrière-plan
|
// Exécution de la synchro en arrière-plan
|
||||||
|
Loading…
Reference in New Issue
Block a user