Android: name of the current (system) theme

How do I get the current system theme name or ID using the getTheme() function?

I would like to set my application theme to DARK if the current theme is LIGHT . This is due to the fact that MIUI has (I think) a LIGHT theme, and some things do not appear in my application (see the "Set timer" line:

image

+4
source share

Source: https://habr.com/ru/post/1396390/


All Articles