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

This commit is contained in:
Fedor Kudasov
2021-11-17 18:42:53 +00:00
committed by Android (Google) Code Review
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;