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

Commit 34d41e9a authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Only simulate the first click if "Always use" button is available

This prevents Keep from being selected automatically when shown in the Share dialog
if Keep was previously chosen by the user as Always use for a send action.
This was a regression introduced by the new intent disambig behavior.

Bug: 11294904
Change-Id: I6745060a8ee0a6d680e657b55ee46aaec27bbacb
parent 02e4c3a1
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;