Added remarks

This commit is contained in:
M66B
2022-06-10 13:11:19 +02:00
parent 6107511d94
commit fe0166e8e1
2 changed files with 3 additions and 0 deletions

View File

@@ -1441,6 +1441,7 @@ public class Helper {
}
static boolean isDarkTheme(Context context) {
// R.attr.isLightTheme
TypedValue tv = new TypedValue();
context.getTheme().resolveAttribute(R.attr.themeName, tv, true);
return (tv.string != null && !"light".contentEquals(tv.string));