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

Commit 7615ad88 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NullPointerException when collecting bitmap sizes" into main

parents 9492fd98 26dd5cd0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -9333,7 +9333,11 @@ public class RemoteViews implements Parcelable, Filter {
        Set<Integer> bitmapIdSet = getBitmapIdsUsedByActions(new HashSet<>());
        int result = 0;
        for (int bitmapId: bitmapIdSet) {
            result += mBitmapCache.getBitmapForId(bitmapId).getAllocationByteCount();
            Bitmap currentBitmap = mBitmapCache.getBitmapForId(bitmapId);
            if (currentBitmap == null) {
                continue;
            }
            result += currentBitmap.getAllocationByteCount();
        }

        return result;