Skip to content

Commit

Permalink
Fix Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
prathameshmm02 committed Apr 25, 2022
1 parent c5fe4eb commit 84c7525
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ class ThemeEngine(context: Context) {
set(value) = prefs.edit { putBoolean(DYNAMIC_THEME, value) }

/**
* Get current app theme if {@link isDynamicTheme} is enabled or a static theme instead.
* @return a dynamic theme if
* Get current app theme.
* @return a dynamic theme if isDynamicTheme is enabled or a static theme otherwise.
*/
fun getTheme(): Int {
return if (isDynamicTheme) R.style.Theme_ThemeEngine_Dynamic else staticTheme
}

/**
* Get current static app theme
* Get current static app theme, the theme which is used when dynamic color is disabled
*/
var staticTheme
get() = prefs.getInt(APP_THEME, R.style.Theme_ThemeEngine_Blue)
Expand Down

0 comments on commit 84c7525

Please sign in to comment.