mirror of
https://github.com/moparisthebest/android-app
synced 2024-12-23 15:08:49 -05:00
indicate download with progressBar in MainActivity
This commit is contained in:
parent
f36324a0e5
commit
eeccc1434e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user