core/src/main/java/org/hitogo/core/HitogoController.java
protected void searchForNextInvisibleAlert(@NonNull final LinkedList<AlertImpl> currentAlerts, @IntRange(from = 0) final long wait) {
        int highestIncludingPriority = getCurrentHighestPriority(currentAlerts);
        for (AlertImpl alert : currentAlerts) {
            if (!isAlertAttached(alert) && (!alert.hasPriority() || alert.getPriority() <= highestIncludingPriority)) {
                if (alert.hasPriority()) {
                    setCurrentHighestPriority(alert.getAlertType(), alert.getPriority());
                }
                makeAlertVisible(alert, wait);
                break;
            }
        }
    }
/**
     * Searches for the next invisible alert using the given LinkedList. <b>Internal use only.</b>
     *
     * @param currentAlerts List of alerts which are stored inside this controller for a specific
     *                      alert type
     * @param wait          time in ms that will delay the show for the next alert due to current running
     *                      animations
     * @since 1.0.0
     */
Searches for the next invisible alert using the given LinkedList. Internal use only.
@param currentAlerts List of alerts which are stored inside this controller for a specific
alert type
@param wait          time in ms that will delay the show for the next alert due to current running
animations
@since 1.0.0
Searches for the next invisible alert using the given LinkedList . Internal use only . @param currentAlerts List of alerts which are stored inside this controller for a specific alert type @param wait time in ms that will delay the show for the next alert due to current running animations @since 1 . 0 . 0
protected void searchForNextInvisibleAlert(@NonNull final LinkedList<AlertImpl> currentAlerts, @IntRange(from = 0) final long wait) {
        int highestIncludingPriority = getCurrentHighestPriority(currentAlerts);
        for (AlertImpl alert : currentAlerts) {
            if (!isAlertAttached(alert) && (!alert.hasPriority() || alert.getPriority() <= highestIncludingPriority)) {
                if (alert.hasPriority()) {
                    setCurrentHighestPriority(alert.getAlertType(), alert.getPriority());
                }
                makeAlertVisible(alert, wait);
                break;
            }
        }
    }
protected void searchForNextInvisibleAlert ( @ NonNull final LinkedList < AlertImpl > currentAlerts , @ IntRange ( from = 0 ) final long wait ) { int highestIncludingPriority = getCurrentHighestPriority ( currentAlerts ) ; for ( AlertImpl alert : currentAlerts ) { if ( ! isAlertAttached ( alert ) && ( ! alert . hasPriority ( ) || alert . getPriority ( ) <= highestIncludingPriority ) ) { if ( alert . hasPriority ( ) ) { setCurrentHighestPriority ( alert . getAlertType ( ) , alert . getPriority ( ) ) ; } makeAlertVisible ( alert , wait ) ; break ; } } }
Searches for the next invisible alert using the given LinkedList.
Searches for the next invisible alert using the given LinkedList .