diff --git a/quickstep/src/com/android/quickstep/views/FloatingTaskView.java b/quickstep/src/com/android/quickstep/views/FloatingTaskView.java index 5a86464498..e2ffa18315 100644 --- a/quickstep/src/com/android/quickstep/views/FloatingTaskView.java +++ b/quickstep/src/com/android/quickstep/views/FloatingTaskView.java @@ -15,6 +15,8 @@ import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.ImageView; +import androidx.annotation.Nullable; + import com.android.launcher3.InsettableFrameLayout; import com.android.launcher3.Launcher; import com.android.launcher3.LauncherAnimUtils; @@ -51,11 +53,11 @@ public class FloatingTaskView extends FrameLayout { this(context, null); } - public FloatingTaskView(Context context, AttributeSet attrs) { + public FloatingTaskView(Context context, @Nullable AttributeSet attrs) { this(context, attrs, 0); } - public FloatingTaskView(Context context, AttributeSet attrs, int defStyleAttr) { + public FloatingTaskView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); mLauncher = Launcher.getLauncher(context); mIsRtl = Utilities.isRtl(getResources()); diff --git a/quickstep/src/com/android/quickstep/views/FloatingWidgetView.java b/quickstep/src/com/android/quickstep/views/FloatingWidgetView.java index 88b11a0884..463ed4bd9c 100644 --- a/quickstep/src/com/android/quickstep/views/FloatingWidgetView.java +++ b/quickstep/src/com/android/quickstep/views/FloatingWidgetView.java @@ -30,6 +30,8 @@ import android.view.ViewGroup; import android.view.ViewTreeObserver.OnGlobalLayoutListener; import android.widget.FrameLayout; +import androidx.annotation.Nullable; + import com.android.launcher3.Launcher; import com.android.launcher3.R; import com.android.launcher3.Utilities; @@ -68,11 +70,11 @@ public class FloatingWidgetView extends FrameLayout implements AnimatorListener, this(context, null); } - public FloatingWidgetView(Context context, AttributeSet attrs) { + public FloatingWidgetView(Context context, @Nullable AttributeSet attrs) { this(context, attrs, 0); } - public FloatingWidgetView(Context context, AttributeSet attrs, int defStyleAttr) { + public FloatingWidgetView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); mLauncher = Launcher.getLauncher(context); mListenerView = new ListenerView(context, attrs); diff --git a/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java b/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java index 715d30e4af..5d6b6563f7 100644 --- a/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java +++ b/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java @@ -30,6 +30,8 @@ import android.util.AttributeSet; import android.view.MotionEvent; import android.view.Surface; +import androidx.annotation.Nullable; + import com.android.launcher3.BaseQuickstepLauncher; import com.android.launcher3.LauncherState; import com.android.launcher3.statehandlers.DepthController; @@ -49,11 +51,11 @@ public class LauncherRecentsView extends RecentsView