diff options
author | 2020-09-25 21:16:22 -0400 | |
---|---|---|
committer | 2020-10-08 19:29:50 +0000 | |
commit | 7f03b9f0cf775ec3326b628cbfa48e428fb0032c (patch) | |
tree | 773c0beef70957b8a5f2fc473ab0b38137975329 | |
parent | 753f80a08a228abcff573c129da8d12e47972181 (diff) |
When logging ranking positions, use the number of displayed targets
in calculating offset rather than the total number available.
Test: ChooserActivityTest; log inspection
Bug: 169344682
Change-Id: I40c841bf0f3e1cf90b0e4998bde1c9e8009c09c5
(cherry picked from commit b17dbd20c35fc12088f32d3626e50f485c92c36b)
-rw-r--r-- | core/java/com/android/internal/app/ChooserActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/com/android/internal/app/ChooserActivity.java b/core/java/com/android/internal/app/ChooserActivity.java index 76c2f2e4c60b..460561b5091e 100644 --- a/core/java/com/android/internal/app/ChooserActivity.java +++ b/core/java/com/android/internal/app/ChooserActivity.java @@ -1761,7 +1761,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, |