mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Making "tap to add" in customization mode automatically
add to the current screen
This commit is contained in:
@@ -368,12 +368,27 @@ public class CustomizePagedView extends PagedView
|
||||
c.setChecked(!wasChecked);
|
||||
|
||||
// End the current choice mode when we have no items selected
|
||||
if (!c.isChecked()) {
|
||||
/*if (!c.isChecked()) {
|
||||
endChoiceMode();
|
||||
} else if (isChoiceMode(CHOICE_MODE_NONE)) {
|
||||
endChoiceMode();
|
||||
startChoiceMode(CHOICE_MODE_SINGLE, this);
|
||||
}
|
||||
}*/
|
||||
mChoiceMode = CHOICE_MODE_SINGLE;
|
||||
|
||||
Workspace w = mLauncher.getWorkspace();
|
||||
int currentWorkspaceScreen = mLauncher.getCurrentWorkspaceScreen();
|
||||
final CellLayout cl = (CellLayout)w.getChildAt(currentWorkspaceScreen);
|
||||
cl.setHover(true);
|
||||
|
||||
animateClickFeedback(v, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
cl.setHover(false);
|
||||
mLauncher.onWorkspaceClick(cl);
|
||||
mChoiceMode = CHOICE_MODE_NONE;
|
||||
}
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user