Resolver - 'Always' button broken for non VIEW cases

Users are incorrectly being directed to the settings app when
selecting 'Always', making them unable to actually open an app through
the resolver.

Bug: 132071949
Test: Steps are reported in b/136451610
Change-Id: I11775d7b0b780195f08273ad2b90b8ecd2ee1db4
This commit is contained in:
Matt Pietal
2019-07-03 09:12:56 -04:00
parent ae80cf399a
commit a310c1fa3a

View File

@@ -889,7 +889,8 @@ public class ResolverActivity extends Activity {
: mAdapterView.getCheckedItemPosition();
boolean hasIndexBeenFiltered = !mAdapter.hasFilteredItem();
ResolveInfo ri = mAdapter.resolveInfoForPosition(which, hasIndexBeenFiltered);
if (!ri.handleAllWebDataURI && id == R.id.button_always) {
if (mUseLayoutForBrowsables
&& !ri.handleAllWebDataURI && id == R.id.button_always) {
showSettingsForSelected(ri);
} else {
startSelected(which, id == R.id.button_always, hasIndexBeenFiltered);