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

Commit c32e39f1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix OutOfBounds issue on getFocusedChild" into ub-launcher3-master

parents 437513d5 c25bc033
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());