pref: replace == usage with equals to avoid bugs. (#851)

Co-authored-by: sebastiancoteanu <sebastian.coteanu@arnia.ro>
pull/854/head
sebastiancoteanu 2020-05-15 11:55:07 +03:00 committed by GitHub
parent ecc97c207f
commit c3f777fba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ public class ThemeServiceImpl implements ThemeService {
Executors.newSingleThreadScheduledExecutor().scheduleWithFixedDelay(() -> {
try {
String newActivatedThemeId = optionService.getByPropertyOrDefault(PrimaryProperties.THEME, String.class, DEFAULT_THEME_ID);
if (newActivatedThemeId != activatedThemeId) {
if (!activatedThemeId.equals(newActivatedThemeId)) {
activateTheme(newActivatedThemeId);
}
} catch (Exception e) {