1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-06-28 18:26:22 +00:00

Fix a crash when refresh is running and scrolling

This commit is contained in:
Loic Blot 2015-08-30 10:59:09 +02:00
parent cc14488a88
commit 8e96526e3c

View File

@ -69,8 +69,10 @@ public class ContactListActivity extends ListActivity implements ASyncContactLoa
(new Handler()).post(new Runnable() {
@Override
public void run() {
_layout.setRefreshing(false);
objects.clear();
adapter.notifyDataSetChanged();
new ContactLoadTask(element, getBaseContext(), adapter, objects).execute();
_layout.setRefreshing(false);
}
});
}