MCPcopy Create free account
hub / github.com/cogentcore/core / updateTheme

Method updateTheme

system/driver/android/GoNativeActivity.java:291–294  ·  view source on GitHub ↗
(Configuration config)

Source from the content-addressed store, hash-verified

289 }
290
291 protected void updateTheme(Configuration config) {
292 boolean dark = (config.uiMode & Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES;
293 setDarkMode(dark);
294 }
295
296 private ScaleGestureDetector mScaleDetector;
297

Callers 2

onCreateMethod · 0.95

Calls 1

setDarkModeMethod · 0.95

Tested by

no test coverage detected