diff options
| author | 2021-11-11 11:49:03 +0000 | |
|---|---|---|
| committer | 2021-11-11 21:54:29 +0000 | |
| commit | 716597f726f71f07160eb5e40d488a75551786cc (patch) | |
| tree | 2b14f9013fa639920599bb822d0381b638809ece | |
| parent | 715c488a9ca96480acd5310f50c0c78265e209eb (diff) | |
Add @Nullable annotations to Task fields
Bug: 205828770
Test: m SystemUI-core
Change-Id: I80194b9959b9be3b87d2f074557f4e79f164ceca
(cherry picked from commit 11ae0987c2c98579617351b1a2ec6e0d10978684)
| -rw-r--r-- | packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/Task.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/Task.java b/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/Task.java index 3f2ff742d072..3128ffdbc67b 100644 --- a/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/Task.java +++ b/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/Task.java @@ -23,17 +23,14 @@ import android.app.ActivityManager.TaskDescription; import android.app.TaskInfo; import android.content.ComponentName; import android.content.Intent; -import android.content.pm.ActivityInfo; -import android.graphics.Color; import android.graphics.drawable.Drawable; import android.os.Parcel; import android.os.Parcelable; import android.view.ViewDebug; -import com.android.systemui.shared.recents.utilities.Utilities; +import androidx.annotation.Nullable; import java.io.PrintWriter; -import java.util.ArrayList; import java.util.Objects; /** @@ -202,8 +199,8 @@ public class Task { * The icon is the task description icon (if provided), which falls back to the activity icon, * which can then fall back to the application icon. */ - public Drawable icon; - public ThumbnailData thumbnail; + @Nullable public Drawable icon; + @Nullable public ThumbnailData thumbnail; @ViewDebug.ExportedProperty(category="recents") @Deprecated public String title; |