app/src/main/java/org/andstatus/app/context/MyTheme.java
/**
     * Load a theme according to the preferences.
     */
Load a theme according to the preferences.
Load a theme according to the preferences .
public static void loadTheme(@NonNull Context context) {
        String themeName = getThemeName(context);
        isLightTheme = themeName.contains(".Light");
        isDeviceDefaultTheme = themeName.contains(".DeviceDefault");
        context.setTheme(getThemeId(context, themeName));
        applyStyles(context, false);
    }
public static void loadTheme ( @ NonNull Context context ) { String themeName = getThemeName ( context ) ; isLightTheme = themeName . contains ( ".Light" ) ; isDeviceDefaultTheme = themeName . contains ( ".DeviceDefault" ) ; context . setTheme ( getThemeId ( context , themeName ) ) ; applyStyles ( context , false ) ; }
Load a theme according to the preferences.
Load a theme according to the preferences .