RecentsExtraCard

Bug fixing / formatting

Change-Id: If36cd64986cc213682af1c7b4fd3281909812c15
This commit is contained in:
Sreyas 2019-10-24 18:00:05 -07:00
parent 7afd271a17
commit d567b58810
4 changed files with 7 additions and 7 deletions

View File

@ -69,7 +69,7 @@ public class BackgroundAppState extends OverviewState {
return super.getOverviewScaleAndTranslation(launcher); return super.getOverviewScaleAndTranslation(launcher);
} }
TaskView dummyTask; TaskView dummyTask;
if (recentsView.getCurrentPage() >= 0) { if (recentsView.getCurrentPage() >= recentsView.getTaskViewStartIndex()) {
if (recentsView.getCurrentPage() <= taskCount - 1) { if (recentsView.getCurrentPage() <= taskCount - 1) {
dummyTask = recentsView.getCurrentPageTaskView(); dummyTask = recentsView.getCurrentPageTaskView();
} else { } else {

View File

@ -326,8 +326,8 @@ public class LauncherRecentsView extends RecentsView<Launcher> implements StateL
@Override @Override
protected void onAttachedToWindow() { protected void onAttachedToWindow() {
super.onAttachedToWindow(); super.onAttachedToWindow();
PluginManagerWrapper.INSTANCE.get(getContext()) PluginManagerWrapper.INSTANCE.get(getContext()).addPluginListener(
.addPluginListener(mRecentsExtraCardPluginListener, RecentsExtraCard.class); mRecentsExtraCardPluginListener, RecentsExtraCard.class);
} }
@Override @Override

View File

@ -1855,8 +1855,8 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
private void updateEnabledOverlays() { private void updateEnabledOverlays() {
int overlayEnabledPage = mOverlayEnabled ? getNextPage() : -1; int overlayEnabledPage = mOverlayEnabled ? getNextPage() : -1;
int taskCount = getTaskViewCount(); int taskCount = getTaskViewCount();
for (int i = 0; i < taskCount; i++) { for (int i = mTaskViewStartIndex; i < mTaskViewStartIndex + taskCount; i++) {
getTaskViewAt(i).setOverlayEnabled(i == overlayEnabledPage); getTaskViewAtByAbsoluteIndex(i).setOverlayEnabled(i == overlayEnabledPage);
} }
} }