public ActivityInfo addActivityIfNotPresent ( ComponentName componentName ) { return addComponent ( activityFilters , p -> p . activities , ( p , a ) -> p . activities = a , updateName ( componentName , new ActivityInfo ( ) ) , false ) ; }
Makes sure that given activity exists .