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

Commit d249b5ad authored by Sihua Ma's avatar Sihua Ma
Browse files

Visit Uris for views in RemoteCollectionCache

Test: Presubmit
Bug: 380462730
Flag: EXEMPT bug fix
Change-Id: I68dc404cda5bf870ad4850bfe9f0aac24c7abeb1
parent 2883526f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1298,7 +1298,13 @@ public class RemoteViews implements Parcelable, Filter {

        @Override
        public void visitUris(@NonNull Consumer<Uri> visitor) {
            if (mIntentId != -1 || mItems == null) {
            if (mItems == null) {
                // Null item indicates adapter conversion took place, so the URIs in cached items
                // need to be validated.
                RemoteCollectionItems cachedItems = mCollectionCache.getItemsForId(mIntentId);
                if (cachedItems != null) {
                    cachedItems.visitUris(visitor);
                }
                return;
            }