code: public static boolean isDarkTheme(Context context, boolean current) {
          return resolveBoolean(context, R.attr.mdtp_theme_dark, current);
      }
docs: Gets dialog type (Light/Dark) from current theme
  @param context The context to use as reference for the boolean
  @param current Default value to return if cannot resolve the attribute
  @return true if dark mode, false if light.