Fix slowdowns in stream list views

Now the playback state of a stream is loaded only when needed (i.e. when the stream is visible), just as it is done with thumbnails.
Removed `StateObjectsListAdapter.java`, which used to load the state of every stream at list instantiation, generating slowdowns and freezes.
This commit is contained in:
Stypox 2019-08-14 11:42:39 +02:00
parent 5053d470f6
commit e6617ff8e8
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23
22 changed files with 96 additions and 284 deletions

View file

@ -64,7 +64,6 @@ public abstract class BaseListFragment<I, N> extends BaseStateFragment<I> implem
@Override
public void onDetach() {
infoListAdapter.dispose();
super.onDetach();
}
@ -97,8 +96,6 @@ public abstract class BaseListFragment<I, N> extends BaseStateFragment<I> implem
}
updateFlags = 0;
}
itemsList.post(infoListAdapter::updateStates);
}
/*//////////////////////////////////////////////////////////////////////////