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

Commit bc4d2135 authored by Zak Cohen's avatar Zak Cohen
Browse files

TaskView - add a getter for the bitmap data.

This allows other components to get it directly from the view, rather
than retaining their own copy.

Bug: 137129923
Tested: Manual

Change-Id: Ibab307517c31cd3cb59b4d77ff390fd97546e86d
parent bf004210
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -410,4 +410,11 @@ public class TaskThumbnailView extends View {

        return new ColorMatrixColorFilter(COLOR_MATRIX);
    }

    public Bitmap getThumbnail() {
        if (mThumbnailData == null) {
            return null;
        }
        return mThumbnailData.thumbnail;
    }
}