Show frequently used intents on top

This commit is contained in:
fkloft
2013-11-04 23:59:23 +01:00
parent b63d3311f6
commit dae674d63f
4 changed files with 217 additions and 32 deletions

View File

@@ -44,8 +44,12 @@ public class IntentFragment extends Fragment implements OnScrollListener, OnItem
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
((ShareActivity) getActivity()).getIntentComparator().trackIntentSelection(mListView.getItem(position));
Intent intent = mListView.getTargetIntent(position);
startActivity(intent);
getActivity().finish();
}
@Override