Don't handle click if the resolver is already finishing.

Fixes bug that double tapping on an entry in the intent disambig dialog
can result in the picked activity being launched twice.

Bug: 10770501
Change-Id: Ibb7c6bea5f3c25fa204a2f0e65c8044c2a2549f7
This commit is contained in:
Amith Yamasani
2013-09-18 13:16:00 -07:00
parent 6df7d4a574
commit 07cd351b4a

View File

@@ -280,6 +280,9 @@ public class ResolverActivity extends AlertActivity implements AdapterView.OnIte
}
void startSelected(int which, boolean always) {
if (isFinishing()) {
return;
}
ResolveInfo ri = mAdapter.resolveInfoForPosition(which);
Intent intent = mAdapter.intentForPosition(which);
onIntentSelected(ri, intent, always);