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

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

Merge "Fix NPE inside getFocusdChild" into ub-launcher3-master

parents 104463a1 3a4caed1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -132,6 +132,9 @@ public class AlphabeticalAppsList implements AllAppsStore.OnUpdateListener {
     * Returns the child adapter item with IME launch focus.
     */
    public AdapterItem getFocusedChild() {
        if (mAdapterItems.size() == 0) {
            return null;
        }
        return mAdapterItems.get(getFocusedChildIndex());
    }