Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aeb66ca4 authored by Adam Cohen's avatar Adam Cohen
Browse files

Fixing a bug in RemoteViewsAdapter where cached items weren't being marked as requested

Change-Id: I1275cbbcd949d27c1c7444a9fb7a684ae7d7eb25
parent 83a7b963
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -914,7 +914,9 @@ public class RemoteViewsAdapter extends BaseAdapter implements Handler.Callback
                // view and queueing it to be loaded if it has not already been loaded.
                Context context = parent.getContext();
                RemoteViews rv = mCache.getRemoteViewsAt(position);
                int typeId = mCache.getMetaDataAt(position).typeId;
                RemoteViewsIndexMetaData indexMetaData = mCache.getMetaDataAt(position);
                indexMetaData.isRequested = true;
                int typeId = indexMetaData.typeId;

                // Reuse the convert view where possible
                if (layout != null) {