src/main/java/de/blau/android/layer/AbstractConfigurationDialog.java
/**
     * Update the preference object everywhere
     * 
     * @param activity the calling Activity
     */
Update the preference object everywhere

@param activity the calling Activity
Update the preference object everywhere @param activity the calling Activity
protected void updatePrefs(@Nullable final FragmentActivity activity) {
        if (activity != null) {
            Preferences p = new Preferences(activity);
            if (activity instanceof Main) {
                ((Main) activity).updatePrefs(p);
            }
            App.getLogic().setPrefs(p);
            App.getLogic().getMap().setPrefs(getContext(), p);
            App.getLogic().getMap().invalidate();
        } else {
            Log.e(DEBUG_TAG, "null activity in updatePrefs");
        }
    }
protected void updatePrefs ( @ Nullable final FragmentActivity activity ) { if ( activity != null ) { Preferences p = new Preferences ( activity ) ; if ( activity instanceof Main ) { ( ( Main ) activity ) . updatePrefs ( p ) ; } App . getLogic ( ) . setPrefs ( p ) ; App . getLogic ( ) . getMap ( ) . setPrefs ( getContext ( ) , p ) ; App . getLogic ( ) . getMap ( ) . invalidate ( ) ; } else { Log . e ( DEBUG_TAG , "null activity in updatePrefs" ) ; } }
Update the preference object everywhere
Update the preference object everywhere