isSystemInDarkMode

public static boolean isSystemInDarkMode(Context context)

Returns whether the system is currently in dark mode.