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

Commit 149cecdc authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

Merge "Bug 5151927 - Monkeys should not play with detached lists."

parents f28c5393 a2b986e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -635,7 +635,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
    /**
     * Track if we are currently attached to a window.
     */
    private boolean mIsAttached;
    boolean mIsAttached;

    /**
     * Track the item count from the last time we handled a data change.
+1 −1
Original line number Diff line number Diff line
@@ -2074,7 +2074,7 @@ public class ListView extends AbsListView {
    }

    private boolean commonKey(int keyCode, int count, KeyEvent event) {
        if (mAdapter == null) {
        if (mAdapter == null || !mIsAttached) {
            return false;
        }