indicate download with progressBar in MainActivity

This commit is contained in:
Kevin Meyer 2014-08-19 16:13:19 +02:00
parent f36324a0e5
commit eeccc1434e

View File

@ -162,10 +162,18 @@ import static fr.gaulupeau.apps.Poche.ArticlesSQLiteOpenHelper.ARTICLE_DATE;
showToast(getString(R.string.txtConfigNotSet));
} else if (activeNetwork != null && activeNetwork.isConnected()) {
// Exécution de la synchro en arrière-plan
findViewById(R.id.progressBar1).setVisibility(View.VISIBLE);
new Thread(new Runnable() {
@Override
public void run() {
//pushRead();
parseRSS();
runOnUiThread(new Runnable() {
@Override
public void run() {
findViewById(R.id.progressBar1).setVisibility(View.INVISIBLE);
}
});
}
}).start();
} else {