From 3a0f8a90bd569c454580f088960b8aaeff32adc6 Mon Sep 17 00:00:00 2001 From: Fedor Kudasov Date: Fri, 12 Nov 2021 17:11:40 +0000 Subject: [PATCH] Annotate RecentsView with @Nullable Bug: 205828770 Test: m LauncherGoResLib Change-Id: I44a4f7ce4258e54d43ca2c5a3937c81a4a686f80 (cherry picked from commit ac9cee5a7cc8b471f276307389c0bbccbbaa61c7) --- .../android/quickstep/views/RecentsView.java | 41 +++++++++++++++++-- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 223ce1c556..92f1a67aa6 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -383,7 +383,9 @@ public abstract class RecentsView mSizeStrategy; + @Nullable protected RecentsAnimationController mRecentsAnimationController; + @Nullable protected SurfaceTransactionApplier mSyncTransactionApplier; protected int mTaskWidth; protected int mTaskHeight; @@ -394,12 +396,15 @@ public abstract class RecentsView extends IPipAnimationListener.Stub { + @Nullable private T mActivity; + @Nullable private RecentsView mRecentsView; - public void setActivityAndRecentsView(T activity, RecentsView recentsView) { + public void setActivityAndRecentsView(@Nullable T activity, + @Nullable RecentsView recentsView) { mActivity = activity; mRecentsView = recentsView; }