OSDN Git Service

ANR Caused by passes over Data Set on notifyDataSetChanged()
authorherriojr <jherriott@cyngn.com>
Wed, 29 Jul 2015 23:26:59 +0000 (16:26 -0700)
committerherriojr <jherriott@cyngn.com>
Wed, 29 Jul 2015 23:42:47 +0000 (16:42 -0700)
commitdf55584ec69388fbc418c7236f20868e45f37caf
tree3abebcec12fa5cbcfb4ae056d3b6131b49595191
parent85ff3da0447c34af789812d209d95674c558c01e
ANR Caused by passes over Data Set on notifyDataSetChanged()

Logic existed which took a pass over the data on the UI thread each
time notifyDataSetChange was called which can cause an ANR on a large
data set. This fix removes a lot of the unnecessary logic associated
with this and moves it to getView(). Performance still seems good on
the OnePlus for scrolling.

Change-Id: Idde74f0688fef0ba7e4b560b06d9494896a24174
Ticket: QRDL-931
src/com/cyanogenmod/filemanager/adapters/FileSystemObjectAdapter.java