libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/ThemeSwitcher.java
static Icon retrieveMapMarker(Context context) {
    SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);
    boolean darkThemeEnabled = preferences.getBoolean(context.getString(R.string.dark_theme_enabled), false);
    IconFactory iconFactory = IconFactory.getInstance(context);
    return iconFactory.fromResource(darkThemeEnabled ? R.drawable.map_marker_dark : R.drawable.map_marker_light);
  }
/**
   * Returns a map marker {@link Icon} based on the current theme setting.
   *
   * @param context to retrieve {@link SharedPreferences} and an instance of {@link IconFactory}
   * @return {@link Icon} map marker dark or light
   */
Returns a map marker  Icon based on the current theme setting.
@param context to retrieve  SharedPreferences and an instance of  IconFactory
@return  Icon map marker dark or light
Returns a map marker Icon based on the current theme setting . @param context to retrieve SharedPreferences and an instance of IconFactory @return Icon map marker dark or light
static Icon retrieveMapMarker(Context context) {
    SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);
    boolean darkThemeEnabled = preferences.getBoolean(context.getString(R.string.dark_theme_enabled), false);
    IconFactory iconFactory = IconFactory.getInstance(context);
    return iconFactory.fromResource(darkThemeEnabled ? R.drawable.map_marker_dark : R.drawable.map_marker_light);
  }
static Icon retrieveMapMarker ( Context context ) { SharedPreferences preferences = PreferenceManager . getDefaultSharedPreferences ( context ) ; boolean darkThemeEnabled = preferences . getBoolean ( context . getString ( R . string . dark_theme_enabled ) , false ) ; IconFactory iconFactory = IconFactory . getInstance ( context ) ; return iconFactory . fromResource ( darkThemeEnabled ? R . drawable . map_marker_dark : R . drawable . map_marker_light ) ; }
Returns a map marker {@link Icon} based on the current theme setting.
Returns a map marker { @link Icon } based on the current theme setting .