Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c25bc033 authored by Samuel Fufa's avatar Samuel Fufa
Browse files

Fix OutOfBounds issue on getFocusedChild

In cases where search only shows items that don't require focus highlighting,getFocusedChildIndex returns -1.

Bug: 13023194
Change-Id: I6145ae26e3953c5fc4fd1ed1696eb931017cac0f
parent 9ee4e86c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ public class AlphabeticalAppsList implements AllAppsStore.OnUpdateListener {
     * Returns the child adapter item with IME launch focus.
     */
    public AdapterItem getFocusedChild() {
        if (mAdapterItems.size() == 0) {
        if (mAdapterItems.size() == 0 || getFocusedChildIndex() != -1) {
            return null;
        }
        return mAdapterItems.get(getFocusedChildIndex());