MCPcopy Create free account
hub / github.com/M66B/FairEmail / isDarkTheme

Method isDarkTheme

app/src/main/java/eu/faircode/email/Helper.java:2276–2281  ·  view source on GitHub ↗
(Context context)

Source from the content-addressed store, hash-verified

2274 }
2275
2276 static boolean isDarkTheme(Context context) {
2277 // R.attr.isLightTheme
2278 TypedValue tv = new TypedValue();
2279 context.getTheme().resolveAttribute(R.attr.themeName, tv, true);
2280 return (tv.string != null && !"light".contentEquals(tv.string));
2281 }
2282
2283 static void showKeyboard(final View view) {
2284 view.post(new RunnableEx("showKeyboard") {

Callers 15

onCreateMethod · 0.95
initMethod · 0.95
sanitizeMethod · 0.95
onCreateMethod · 0.95
setBackgroundMethod · 0.95
onCreateViewMethod · 0.95
initMethod · 0.95
viewMethod · 0.95
onExecutedMethod · 0.95
bindBodyMethod · 0.95
onShowMethod · 0.95
onActionMoreMethod · 0.95

Calls 1

getThemeMethod · 0.80

Tested by

no test coverage detected