You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can get the color-scheme key from Configuration#uiMode! We can get Configuration from Resources#getConfiguration from Application#getResources!!
intcurrentNightMode = configuration.uiMode & Configuration.UI_MODE_NIGHT_MASK;
switch (currentNightMode) {
caseConfiguration.UI_MODE_NIGHT_NO:
// Night mode is not active, we're using the light themebreak;
caseConfiguration.UI_MODE_NIGHT_YES:
// Night mode is active, we're using dark themebreak;
}
The text was updated successfully, but these errors were encountered:
We can get the
color-scheme
key fromConfiguration#uiMode
! We can get Configuration from Resources#getConfiguration from Application#getResources!!The text was updated successfully, but these errors were encountered: