From bc4d213535f296f90ad8dabe22eea13cc8ace838 Mon Sep 17 00:00:00 2001 From: Zak Cohen Date: Thu, 18 Jul 2019 15:40:49 -0700 Subject: [PATCH] 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 --- .../src/com/android/quickstep/views/TaskThumbnailView.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskThumbnailView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskThumbnailView.java index d55a520443..7f1e8980b9 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskThumbnailView.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/TaskThumbnailView.java @@ -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; + } }