1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-06-12 02:16:21 +00:00

Refresh directly, don't wait

This commit is contained in:
Loic Blot 2015-08-09 23:50:29 +02:00
parent 6ee249ca7e
commit b937c4ebdd

View File

@ -66,13 +66,13 @@ public class ContactListActivity extends ListActivity implements ASyncContactLoa
@Override
public void onRefresh() {
_layout.setRefreshing(true);
(new Handler()).postDelayed(new Runnable() {
(new Handler()).post(new Runnable() {
@Override
public void run() {
_layout.setRefreshing(false);
new ContactLoadTask(element, getBaseContext(), adapter, objects).execute();
}
}, 3000);
});
}
});
return;