Merge "Add null check when checking clipboard actions package"
This commit is contained in:
committed by
Android (Google) Code Review
commit
2936a50e11
@@ -262,7 +262,8 @@ public class ClipboardOverlayController {
|
||||
resetActionChips();
|
||||
for (RemoteAction action : actions) {
|
||||
Intent targetIntent = action.getActionIntent().getIntent();
|
||||
if (!TextUtils.equals(source, targetIntent.getComponent().getPackageName())) {
|
||||
ComponentName component = targetIntent.getComponent();
|
||||
if (component != null && !TextUtils.equals(source, component.getPackageName())) {
|
||||
OverlayActionChip chip = constructActionChip(action);
|
||||
mActionContainer.addView(chip);
|
||||
mActionChips.add(chip);
|
||||
|
||||
Reference in New Issue
Block a user