src/main/java/de/blau/android/util/Snack.java
/**
     * Show the first snackbar on the queue if any and not already being shown
     * 
     * Note: caller needs to provide synchronization
     * 
     * @param queue the queue to check
     * @return true if a snackbar was found and shown
     */
Show the first snackbar on the queue if any and not already being shown

caller needs to provide synchronization

@param queue the queue to check
@return true if a snackbar was found and shown
Show the first snackbar on the queue if any and not already being shown caller needs to provide synchronization @param queue the queue to check @return true if a snackbar was found and shown
static boolean showFirst(LinkedList<Snackbar> queue) {
        Snackbar first = queue.peekFirst();
        if (first != null && !first.isShown()) {
            first.show();
            return true;
        }
        return false;
    }
static boolean showFirst ( LinkedList < Snackbar > queue ) { Snackbar first = queue . peekFirst ( ) ; if ( first != null && ! first . isShown ( ) ) { first . show ( ) ; return true ; } return false ; }
Show the first snackbar on the queue if any and not already being shown
Show the first snackbar on the queue if any and not already being shown