commit | bc4d213535f296f90ad8dabe22eea13cc8ace838 | [log] [tgz] |
---|---|---|
author | Zak Cohen <zakcohen@google.com> | Thu Jul 18 15:40:49 2019 -0700 |
committer | Zak Cohen <zakcohen@google.com> | Fri Jul 19 15:14:53 2019 -0700 |
tree | 5358a80f9e705eba8610151b2080333bce378478 | |
parent | bf0042107c433de499e10b91a412b6c3e4a3bcbc [diff] |
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
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 d55a520..7f1e898 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 @@ return new ColorMatrixColorFilter(COLOR_MATRIX); } + + public Bitmap getThumbnail() { + if (mThumbnailData == null) { + return null; + } + return mThumbnailData.thumbnail; + } }