mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
remove pre-recyclerview loader workaround
This commit is contained in:
parent
b640012ac6
commit
2eb36e0bbe
2 changed files with 0 additions and 16 deletions
|
@ -381,12 +381,6 @@ public abstract class ItemsList extends NbActivity implements StoryOrderChangedL
|
|||
|
||||
@Override
|
||||
public void finish() {
|
||||
if (itemSetFragment != null) {
|
||||
// since v6.0 of Android, the ListView in the fragment likes to crash if the underlying
|
||||
// dataset changes rapidly as happens when marking-all-read and when the fragment is
|
||||
// stopping. do a manual hard-stop of the loaders in the fragment before we finish
|
||||
itemSetFragment.stopLoader();
|
||||
}
|
||||
super.finish();
|
||||
/*
|
||||
* Animate out the list by sliding it to the right and the Main activity in from
|
||||
|
|
|
@ -43,7 +43,6 @@ public class ItemSetFragment extends NbFragment implements LoaderManager.LoaderC
|
|||
private static final String BUNDLE_GRIDSTATE = "gridstate";
|
||||
|
||||
protected boolean cursorSeenYet = false; // have we yet seen a valid cursor for our particular feedset?
|
||||
private boolean stopLoading = false;
|
||||
|
||||
private int itemGridWidthPx = 0;
|
||||
private int columnCount;
|
||||
|
@ -93,7 +92,6 @@ public class ItemSetFragment extends NbFragment implements LoaderManager.LoaderC
|
|||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
stopLoading = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -213,13 +211,6 @@ public class ItemSetFragment extends NbFragment implements LoaderManager.LoaderC
|
|||
if (gotSome || (totalSeen == null)) triggerSync();
|
||||
}
|
||||
|
||||
/**
|
||||
* Signal that all futher cursor loads should be ignored
|
||||
*/
|
||||
public void stopLoader() {
|
||||
stopLoading = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicate that the DB was cleared.
|
||||
*/
|
||||
|
@ -273,7 +264,6 @@ public class ItemSetFragment extends NbFragment implements LoaderManager.LoaderC
|
|||
|
||||
@Override
|
||||
public synchronized void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
|
||||
if (stopLoading) return;
|
||||
if (cursor != null) {
|
||||
if (! FeedUtils.dbHelper.isFeedSetReady(getFeedSet())) {
|
||||
// the DB hasn't caught up yet from the last story list; don't display stale stories.
|
||||
|
|
Loading…
Add table
Reference in a new issue