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

Commit 2a0e4634 authored by Jon Miranda's avatar Jon Miranda
Browse files

Annotate TaskKey#baseIntent as @NonNull to match platform

Bug: 199027804
Test: manual
Change-Id: I1d9b0e479ac9341b37b3c9fbf7587041e037b35d
parent 88c6602e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import android.os.Parcel;
import android.os.Parcelable;
import android.view.ViewDebug;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import java.io.PrintWriter;
@@ -50,6 +51,7 @@ public class Task {
        @ViewDebug.ExportedProperty(category="recents")
        public int windowingMode;
        @ViewDebug.ExportedProperty(category="recents")
        @NonNull
        public final Intent baseIntent;
        @ViewDebug.ExportedProperty(category="recents")
        public final int userId;
@@ -83,7 +85,7 @@ public class Task {
            updateHashCode();
        }

        public TaskKey(int id, int windowingMode, Intent intent,
        public TaskKey(int id, int windowingMode, @NonNull Intent intent,
                ComponentName sourceComponent, int userId, long lastActiveTime) {
            this.id = id;
            this.windowingMode = windowingMode;
@@ -95,7 +97,7 @@ public class Task {
            updateHashCode();
        }

        public TaskKey(int id, int windowingMode, Intent intent,
        public TaskKey(int id, int windowingMode, @NonNull Intent intent,
                ComponentName sourceComponent, int userId, long lastActiveTime, int displayId) {
            this.id = id;
            this.windowingMode = windowingMode;