final boolean active = (getApplicationContext().getResources().getConfiguration().uiMode
& Configuration.UI_MODE_NIGHT_YES)!= 0;
active is true, the dark theme
final boolean active = (getApplicationContext().getResources().getConfiguration().uiMode
& Configuration.UI_MODE_NIGHT_YES)!= 0;
active is true, the dark theme