When an app is chosen in All Apps, tapping a workspace screen adds it to that screen.
This commit is contained in:
@@ -1009,7 +1009,7 @@ public abstract class PagedView extends ViewGroup {
|
||||
mChoiceMode = mode;
|
||||
}
|
||||
|
||||
protected void endChoiceMode() {
|
||||
public void endChoiceMode() {
|
||||
if (!isChoiceMode(CHOICE_MODE_NONE)) {
|
||||
mChoiceMode = CHOICE_MODE_NONE;
|
||||
resetCheckedGrandchildren();
|
||||
@@ -1059,6 +1059,14 @@ public abstract class PagedView extends ViewGroup {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Object getChosenItem() {
|
||||
View checkedView = (View) getSingleCheckedGrandchild();
|
||||
if (checkedView != null) {
|
||||
return checkedView.getTag();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
protected void resetCheckedGrandchildren() {
|
||||
// loop through children, and set all of their children to _not_ be checked
|
||||
final ArrayList<Checkable> checked = getCheckedGrandchildren();
|
||||
|
||||
Reference in New Issue
Block a user