johannilsson/android-pulltorefresh

scrollfix_for_short_list : freeze when the list contains many items

ToYonos opened this issue · 1 comments

Hi,

I made some tests on my app (which is already using with success the original pull-to-refresh solution) and it's catastrophic when the list is a little longer (> 60 items).
It freezed the app when i dynamically changed the list content (due to the DataSetObserver that made undoubtedly the refresh slower).

With more than 60 items, this code snippet execution takes like forever :

        adapter.clear();
        for (Item i : items)
        {
            adapter.add(i);
        }
        adapter.notifyDataSetChanged();