mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-21 05:45:13 +00:00
Ensure stories cursor isn't used during unread search but after closure.
This commit is contained in:
parent
427235ade6
commit
9cd0e9eeff
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ public abstract class ReadingAdapter extends FragmentStatePagerAdapter {
|
|||
}
|
||||
|
||||
public synchronized Story getStory(int position) {
|
||||
if (stories == null || stories.getColumnCount() == 0 || position >= stories.getCount() || position < 0) {
|
||||
if (stories == null || stories.isClosed() || stories.getColumnCount() == 0 || position >= stories.getCount() || position < 0) {
|
||||
return null;
|
||||
} else {
|
||||
stories.moveToPosition(position);
|
||||
|
|
Loading…
Add table
Reference in a new issue