mirror of
https://github.com/moparisthebest/android-app
synced 2024-12-24 07:28:51 -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));
|
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
|
||||||
|
findViewById(R.id.progressBar1).setVisibility(View.VISIBLE);
|
||||||
new Thread(new Runnable() {
|
new Thread(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
//pushRead();
|
//pushRead();
|
||||||
parseRSS();
|
parseRSS();
|
||||||
|
runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
findViewById(R.id.progressBar1).setVisibility(View.INVISIBLE);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}).start();
|
}).start();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user