Only show at most one action chip in clipboard UI

Bug: 226579943
Fix: 226579943
Test: manual (tried copying phone number, verified that we now
see only "Call" chip instead of "Call" and "Message")

Change-Id: Ib2b36f1d57fa833c252cb404873e822192db9e42
This commit is contained in:
Miranda Kephart
2022-03-25 11:12:37 -04:00
parent 4bf66d6e90
commit 9aee04a2fc

View File

@@ -291,6 +291,7 @@ public class ClipboardOverlayController {
OverlayActionChip chip = constructActionChip(action);
mActionContainer.addView(chip);
mActionChips.add(chip);
break; // only show at most one action chip
}
}
});