mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fix crash.
This commit is contained in:
parent
e883cc4c57
commit
e11580fdfd
1 changed files with 1 additions and 0 deletions
|
@ -82,6 +82,7 @@ public abstract class ReadingAdapter extends FragmentStatePagerAdapter {
|
|||
}
|
||||
|
||||
public synchronized int getPosition(Story story) {
|
||||
if (stories == null) return -1;
|
||||
int pos = 0;
|
||||
while (pos < stories.getCount()) {
|
||||
stories.moveToPosition(pos);
|
||||
|
|
Loading…
Add table
Reference in a new issue