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

Commit d58317b2 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android Git Automerger
Browse files

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

* commit '368daafc':
  Only simulate the first click if "Always use" button is available
parents 8dd4c1d0 368daafc
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;