src/main/java/de/blau/android/util/Snack.java
/**
     * Display a snackbar with a warning
     * 
     * @param activity activity calling us
     * @param res resource id of the message to display
     */
Display a snackbar with a warning

@param activity activity calling us
@param res resource id of the message to display
Display a snackbar with a warning @param activity activity calling us @param res resource id of the message to display
public static void barWarning(Activity activity, int res) {
        if (activity != null) {
            barWarning(activity.findViewById(android.R.id.content), res, Snackbar.LENGTH_LONG);
        }
    }
public static void barWarning ( Activity activity , int res ) { if ( activity != null ) { barWarning ( activity . findViewById ( android . R . id . content ) , res , Snackbar . LENGTH_LONG ) ; } }
Display a snackbar with a warning
Display a snackbar with a warning