mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
Always focus a task in overview
- Focus first task when applying load plan - Focus the next task in shorter row when focused task is dismissed, scale the snapshot and translate the task into focused position - Always show actions view as there is always a focused task. Update scroll alpha when toggling grid enabled - In fallback recents, take into account that home task will be dismissed when determining rows for the grid, ensuring next focused task won't affect row balancing - Bring back clearAllShortTotalCompensation as there isn't always a snappedTaskView (e.g. when snapped to ClearAllButton) - Ensure that getFocusedTaskView is only used when showAsGrid is true Bug: 187839470 Fixes: 188001858 Fixes: 189057812 Test: manual Change-Id: I6f31ef469c58fda70d2dd8caa2ee7d8a80c7f03b
This commit is contained in:
@@ -106,8 +106,7 @@ public final class RecentsViewStateController extends
|
||||
float clearAllButtonAlpha = state.areElementsVisible(mLauncher, CLEAR_ALL_BUTTON) ? 1 : 0;
|
||||
propertySetter.setFloat(mRecentsView.getClearAllButton(), ClearAllButton.VISIBILITY_ALPHA,
|
||||
clearAllButtonAlpha, LINEAR);
|
||||
float overviewButtonAlpha = state.areElementsVisible(mLauncher, OVERVIEW_ACTIONS)
|
||||
&& mRecentsView.shouldShowOverviewActionsForState(state) ? 1 : 0;
|
||||
float overviewButtonAlpha = state.areElementsVisible(mLauncher, OVERVIEW_ACTIONS) ? 1 : 0;
|
||||
propertySetter.setFloat(mLauncher.getActionsView().getVisibilityAlpha(),
|
||||
MultiValueAlpha.VALUE, overviewButtonAlpha, config.getInterpolator(
|
||||
ANIM_OVERVIEW_ACTIONS_FADE, LINEAR));
|
||||
|
||||
Reference in New Issue
Block a user