public void addOrUpdateReceiver(ActivityInfo receiverInfo) {
    addComponent(
        receiverFilters,
        p -> p.receivers,
        (p, a) -> p.receivers = a,
        new ActivityInfo(receiverInfo),
        true);
  }
public void addOrUpdateReceiver(ActivityInfo receiverInfo) {
    addComponent(
        receiverFilters,
        p -> p.receivers,
        (p, a) -> p.receivers = a,
        new ActivityInfo(receiverInfo),
        true);
  }
public void addOrUpdateReceiver ( ActivityInfo receiverInfo ) { addComponent ( receiverFilters , p -> p . receivers , ( p , a ) -> p . receivers = a , new ActivityInfo ( receiverInfo ) , true ) ; }
Adds or updates given broadcast receiver in the system.

If broadcast receiver with the same {@link ComponentInfo#name} and {@code
ComponentInfo#packageName} exists it will be updated. Its {@link ComponentInfo#applicationInfo}
is always set to {@link ApplicationInfo} already existing in the system, but if no
application exists a new one will be created using {@link ComponentInfo#applicationInfo} in
this component.
Adds or updates given broadcast receiver in the system .