Skip to content

Commit

Permalink
Notify listeners when reporting is enabled
Browse files Browse the repository at this point in the history
Relates to #310
  • Loading branch information
weisJ committed Feb 6, 2022
1 parent 3180dfb commit 98efc1c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ private static ThemePreferenceProvider createProvider(final boolean allowNativeR
}

public void enableReporting(final boolean reportingEnabled) {
preferenceProvider.setReporting(reportingEnabled);
if (isReportingEnabled() != reportingEnabled) {
preferenceProvider.setReporting(reportingEnabled);
onPreferenceChange(getPreferredThemeStyle());
}
}

public boolean isReportingEnabled() {
Expand Down

0 comments on commit 98efc1c

Please sign in to comment.