diff --git a/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/BackgroundAppState.java b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/BackgroundAppState.java index f3cbc08b34..bb66ae1cf9 100644 --- a/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/BackgroundAppState.java +++ b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/BackgroundAppState.java @@ -69,7 +69,7 @@ public class BackgroundAppState extends OverviewState { return super.getOverviewScaleAndTranslation(launcher); } TaskView dummyTask; - if (recentsView.getCurrentPage() >= 0) { + if (recentsView.getCurrentPage() >= recentsView.getTaskViewStartIndex()) { if (recentsView.getCurrentPage() <= taskCount - 1) { dummyTask = recentsView.getCurrentPageTaskView(); } else { diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/LauncherRecentsView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/LauncherRecentsView.java index ca33605249..82fbbc6802 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/LauncherRecentsView.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/LauncherRecentsView.java @@ -326,8 +326,8 @@ public class LauncherRecentsView extends RecentsView implements StateL @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); - PluginManagerWrapper.INSTANCE.get(getContext()) - .addPluginListener(mRecentsExtraCardPluginListener, RecentsExtraCard.class); + PluginManagerWrapper.INSTANCE.get(getContext()).addPluginListener( + mRecentsExtraCardPluginListener, RecentsExtraCard.class); } @Override diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java index cf616feb3c..c055db1182 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java @@ -1855,8 +1855,8 @@ public abstract class RecentsView extends PagedView impl private void updateEnabledOverlays() { int overlayEnabledPage = mOverlayEnabled ? getNextPage() : -1; int taskCount = getTaskViewCount(); - for (int i = 0; i < taskCount; i++) { - getTaskViewAt(i).setOverlayEnabled(i == overlayEnabledPage); + for (int i = mTaskViewStartIndex; i < mTaskViewStartIndex + taskCount; i++) { + getTaskViewAtByAbsoluteIndex(i).setOverlayEnabled(i == overlayEnabledPage); } } diff --git a/src_plugins/com/android/systemui/plugins/RecentsExtraCard.java b/src_plugins/com/android/systemui/plugins/RecentsExtraCard.java index 0ebea3d470..cd9f33dd05 100644 --- a/src_plugins/com/android/systemui/plugins/RecentsExtraCard.java +++ b/src_plugins/com/android/systemui/plugins/RecentsExtraCard.java @@ -34,9 +34,9 @@ public interface RecentsExtraCard extends Plugin { /** * Sets up the recents overview extra card and fills in data. * - * @param context Plugin context + * @param context Plugin context * @param frameLayout PlaceholderView - * @param activity Recents activity to hold extra view + * @param activity Recents activity to hold extra view */ void setupView(Context context, FrameLayout frameLayout, Activity activity); }