Merge "Add some more @Nullable annotations" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e65c47e60f
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user