From 0cde4a92020e89f568372d79e58bb19e33d4ac89 Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Wed, 17 Aug 2022 15:05:26 -0700 Subject: [PATCH] Expose getTaskInfo on TaskView There's a bunch of useful stuff on TaskInfo (e.g. taskDescription and background color). This exposes the existing method on TaskView so users of TaskView can get this info. Bug: 237678727 Test: none Change-Id: I95e4bc37562a9f51b2cf6cec6d03889f57222e30 --- .../Shell/src/com/android/wm/shell/TaskView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/TaskView.java b/libs/WindowManager/Shell/src/com/android/wm/shell/TaskView.java index a8764e05c3e2f..d76ad3d27c700 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/TaskView.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/TaskView.java @@ -517,7 +517,9 @@ public class TaskView extends SurfaceView implements SurfaceHolder.Callback, getViewTreeObserver().removeOnComputeInternalInsetsListener(this); } - ActivityManager.RunningTaskInfo getTaskInfo() { + /** Returns the task info for the task in the TaskView. */ + @Nullable + public ActivityManager.RunningTaskInfo getTaskInfo() { return mTaskInfo; }