mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Handle IME selection focus for ENABLE_DEVICE_SEARCH
Bug: 162861289 Change-Id: I15e4eae09be2aa9f89a5157fd74c95e91e64bc53
This commit is contained in:
@@ -223,6 +223,25 @@ public class AlphabeticalAppsList implements AllAppsStore.OnUpdateListener {
|
||||
return mAdapterItems;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the child adapter item with IME launch focus.
|
||||
*/
|
||||
public AdapterItem getFocusedChild() {
|
||||
return mAdapterItems.get(getFocusedChildIndex());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the index of the child with IME launch focus.
|
||||
*/
|
||||
public int getFocusedChildIndex() {
|
||||
for (AdapterItem item : mAdapterItems) {
|
||||
if (item.isCountedForAccessibility()) {
|
||||
return mAdapterItems.indexOf(item);
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of rows of applications
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user