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

Commit 368daafc authored by Amith Yamasani's avatar Amith Yamasani Committed by Android (Google) Code Review
Browse files

Merge "Only simulate the first click if "Always use" button is available" into klp-dev

parents 5ecfb557 34d41e9a
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -181,13 +181,14 @@ public class ResolverActivity extends AlertActivity implements AdapterView.OnIte
            } else {
                mAlwaysUseOption = false;
            }
        }
            // Set the initial highlight if there was a preferred or last used choice
            final int initialHighlight = mAdapter.getInitialHighlight();
            if (initialHighlight >= 0) {
                mListView.setItemChecked(initialHighlight, true);
                onItemClick(null, null, initialHighlight, 0); // Other entries are not used
            }
        }
    }

    Drawable getIcon(Resources res, int resId) {
        Drawable result;