Skip to content
Snippets Groups Projects
Commit 318f37da authored by Jawnnypoo's avatar Jawnnypoo
Browse files

Don't crash if we have less than 10 feed entries

parent 89b81d86
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -58,6 +58,9 @@ public class FeedRemoteViewsFactory implements RemoteViewsService.RemoteViewsFac
public RemoteViews getViewAt(int position) {
// position will always range from 0 to getCount() - 1.
 
if (position >= mEntries.size()) {
return null;
}
Entry entry = mEntries.get(position);
 
RemoteViews rv = new RemoteViews(mContext.getPackageName(), R.layout.widget_item_entry);
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment