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
This commit is contained in:
Mady Mellor
2022-08-17 15:05:26 -07:00
parent 73d8f6cea3
commit 0cde4a9202

View File

@@ -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;
}