Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81f43711 authored by Joe Antonetti's avatar Joe Antonetti Committed by Android (Google) Code Review
Browse files

Merge "Null safety for TaskDescription in RemoteTaskInfo." into main

parents bf16c2b3 37d57bb9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -31,7 +31,12 @@ public class RemoteTaskInfo {

    public RemoteTaskInfo(TaskInfo taskInfo) {
        mId = taskInfo.taskId;

        // TODO: joeantonetti - Proper fallback if task description is null.
        if (taskInfo.taskDescription != null && taskInfo.taskDescription.getLabel() != null) {
            mLabel = taskInfo.taskDescription.getLabel().toString();
        }

        mLastUsedTimeMillis = taskInfo.lastActiveTime;
    }