Skip to content

Commit

Permalink
Make RuleContext.getConfiguration() private.
Browse files Browse the repository at this point in the history
This further discourages the paradigm of rule implementations consuming
entire configs vs. declared fragments.

It also makes RuleContext a more reliable tracker of which fragments
rules use.

PiperOrigin-RevId: 184355968
  • Loading branch information
gregestren authored and Copybara-Service committed Feb 3, 2018
1 parent c552dca commit e861ffc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ public <T extends Fragment> boolean isLegalFragment(Class<T> fragment) {
return isLegalFragment(fragment, NoTransition.INSTANCE);
}

protected BuildConfiguration getConfiguration(ConfigurationTransition transition) {
private BuildConfiguration getConfiguration(ConfigurationTransition transition) {
return transition.isHostTransition() ? hostConfiguration : getConfiguration();
}

Expand Down

0 comments on commit e861ffc

Please sign in to comment.