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

Commit 3a4caed1 authored by Hyunyoung Song's avatar Hyunyoung Song
Browse files

Fix NPE inside getFocusdChild

Bug: 172883035
Change-Id: Iea3e07165cdaa45031ee5bbc11add5c115cab366
parent 06849da4
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());
    }