File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
services/java/com/android/server/am Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4329,6 +4329,9 @@ public ActivityManager.TaskThumbnails getTaskThumbnailsLocked(TaskRecord tr) {
43294329 if (resumed != null && resumed .thumbHolder == tr ) {
43304330 info .mainThumbnail = resumed .stack .screenshotActivities (resumed );
43314331 }
4332+ if (info .mainThumbnail == null ) {
4333+ info .mainThumbnail = tr .lastThumbnail ;
4334+ }
43324335 return info ;
43334336 }
43344337
@@ -4343,7 +4346,7 @@ public Bitmap getTaskTopThumbnailLocked(TaskRecord tr) {
43434346 // thumbnail to return.
43444347 TaskAccessInfo info = getTaskAccessInfoLocked (tr .taskId , true );
43454348 if (info .numSubThumbbails <= 0 ) {
4346- return info .mainThumbnail ;
4349+ return info .mainThumbnail != null ? info . mainThumbnail : tr . lastThumbnail ;
43474350 } else {
43484351 return info .subtasks .get (info .numSubThumbbails -1 ).holder .lastThumbnail ;
43494352 }
You can’t perform that action at this time.
0 commit comments