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

Commit cd5c50af authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add null checks after getting decor" into main

parents 7edf7c84 9b2f7328
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1082,6 +1082,7 @@ public class DesktopModeWindowDecorViewModel implements WindowDecorViewModel,
    public boolean updateAppToWebEducationRequestTimestamp(int taskId,
            long latestOpenInBrowserEducationTimestamp) {
        final WindowDecorationWrapper decor = mWindowDecorByTaskId.get(taskId);
        if (decor == null) return false;
        return decor.updateAppToWebEducationRequestTimestamp(latestOpenInBrowserEducationTimestamp);
    }

@@ -1094,6 +1095,7 @@ public class DesktopModeWindowDecorViewModel implements WindowDecorViewModel,
    public Object isBrowserSessionAvailable(RunningTaskInfo taskInfo,
            @NonNull Continuation<? super Boolean> completion) {
        final WindowDecorationWrapper decor = mWindowDecorByTaskId.get(taskInfo.taskId);
        if (decor == null) return false;
        return decor.isBrowserSessionAvailable();
    }

@@ -1105,6 +1107,7 @@ public class DesktopModeWindowDecorViewModel implements WindowDecorViewModel,
    @Override
    public boolean isCapturedLinkAvailable(int taskId) {
        final WindowDecorationWrapper decor = mWindowDecorByTaskId.get(taskId);
        if (decor == null) return false;
        return decor.isCapturedLinkAvailable();
    }