Merge "When logging ranking positions, use the number of displayed targets in calculating offset rather than the total number available."

This commit is contained in:
Alison Cichowlas
2020-09-28 17:32:41 +00:00
committed by Android (Google) Code Review

View File

@@ -1771,7 +1771,7 @@ public class ChooserActivity extends ResolverActivity implements
case ChooserListAdapter.TARGET_CALLER:
case ChooserListAdapter.TARGET_STANDARD:
cat = MetricsEvent.ACTION_ACTIVITY_CHOOSER_PICKED_APP_TARGET;
value -= currentListAdapter.getSelectableServiceTargetCount();
value -= currentListAdapter.getSurfacedTargetInfo().size();
numCallerProvided = currentListAdapter.getCallerTargetCount();
getChooserActivityLogger().logShareTargetSelected(
SELECTION_TYPE_APP,