Merge "Add some more @Nullable annotations" into sc-v2-dev am: e65c47e60f

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16279499

Change-Id: I2c201837c2ff2bb9938103f5d5a3243e3c501aab
This commit is contained in:
Fedor Kudasov
2021-11-17 18:58:04 +00:00
committed by Automerger Merge Worker
2 changed files with 3 additions and 1 deletions
@@ -74,7 +74,7 @@ public class GroupedTaskView extends TaskView {
}
public void bind(Task primary, Task secondary, RecentsOrientedState orientedState,
StagedSplitBounds splitBoundsConfig) {
@Nullable StagedSplitBounds splitBoundsConfig) {
super.bind(primary, orientedState);
mSecondaryTask = secondary;
mTaskIdContainer[1] = secondary.key.id;
@@ -838,6 +838,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
* Update the thumbnail of the task.
* @param refreshNow Refresh immediately if it's true.
*/
@Nullable
public TaskView updateThumbnail(int taskId, ThumbnailData thumbnailData, boolean refreshNow) {
TaskView taskView = getTaskViewByTaskId(taskId);
if (taskView != null) {
@@ -1043,6 +1044,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
return getLastGridTaskView(getTopRowIdArray(), getBottomRowIdArray());
}
@Nullable
private TaskView getLastGridTaskView(IntArray topRowIdArray, IntArray bottomRowIdArray) {
if (topRowIdArray.isEmpty() && bottomRowIdArray.isEmpty()) {
return null;