diff --git a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java index 1b92cfad32..c97c4edf90 100644 --- a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java @@ -116,7 +116,6 @@ public class ActivityAllAppsContainerView OnDeviceProfileChangeListener, PersonalWorkSlidingTabStrip.OnActivePageChangedListener, ScrimView.ScrimDrawingController { - private static final String TAG = "ActivityAllAppsContainerView"; public static final float PULL_MULTIPLIER = .02f; public static final float FLING_VELOCITY_MULTIPLIER = 1200f; @@ -507,6 +506,10 @@ public class ActivityAllAppsContainerView if (isSearching()) { mWorkManager.reset(); } + // Remove the scrim drawing controller to: + // 1) clean up its reference to this class; and + // 2) avoid using the unfolded version of this class for the folded screen or vice-versa + mScrimView.setDrawingController(null); } /**