src/main/java/de/blau/android/util/Snack.java
/**
     * Display a snackbar with an warning message with a possible action
     * 
     * @param activity activity calling us
     * @param msg message to display
     * @param actionRes action textRes resource for the text of an action
     * @param listener called when action is selected
     */
Display a snackbar with an warning message with a possible action

@param activity activity calling us
@param msg message to display
@param actionRes action textRes resource for the text of an action
@param listener called when action is selected
Display a snackbar with an warning message with a possible action @param activity activity calling us @param msg message to display @param actionRes action textRes resource for the text of an action @param listener called when action is selected
public static void barWarning(@NonNull Activity activity, @NonNull String msg, int actionRes, View.OnClickListener listener) {
        if (activity != null) {
            barWarning(activity.findViewById(android.R.id.content), msg, actionRes, listener);
        }
    }
public static void barWarning ( @ NonNull Activity activity , @ NonNull String msg , int actionRes , View . OnClickListener listener ) { if ( activity != null ) { barWarning ( activity . findViewById ( android . R . id . content ) , msg , actionRes , listener ) ; } }
Display a snackbar with an warning message with a possible action
Display a snackbar with an warning message with a possible action