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

Commit becb0be2 authored by Adam Powell's avatar Adam Powell
Browse files

Fix bug 3175131 - listviews don't highlight properly

Fix up selector drawable state when we resurrect a selection.

Change-Id: Id883c8b416207a50951ec2852826b1eee17bc50c
parent 90298b56
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -4529,8 +4529,9 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
     * Otherwise resurrects the selection and returns true if resurrected.
     */
    boolean resurrectSelectionIfNeeded() {
        if (mSelectedPosition < 0) {
            return resurrectSelection();
        if (mSelectedPosition < 0 && resurrectSelection()) {
            updateSelectorState();
            return true;
        }
        return false;
    }