RecentsExtraCard
Bug fixing / formatting Change-Id: If36cd64986cc213682af1c7b4fd3281909812c15
This commit is contained in:
parent
7afd271a17
commit
d567b58810
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue