core/src/main/java/org/hitogo/core/HitogoController.java
protected void internalShow(@NonNull final LinkedList<AlertImpl> currentObjects, @NonNull final AlertImpl newAlert, final boolean showLater) {
        currentObjects.addLast(newAlert);

        if (showLater) {
            return;
        }

        List<AlertImpl> currentActiveObjects = getCurrentActiveList(newAlert.getAlertType());
        long waitForClosing = 0;

        if (newAlert.hasPriority()) {
            int newAlertPrio = newAlert.getPriority();
            if (newAlertPrio < getCurrentHighestPriority(newAlert.getAlertType())) {
                setCurrentHighestPriority(newAlert.getAlertType(), newAlertPrio);
                waitForClosing = internalHideByType(newAlert.getAlertType());
            } else {
                return;
            }
        } else if (newAlert.isClosingOthers() && !currentActiveObjects.isEmpty()) {
            long waitByType = internalHideByType(newAlert.getAlertType());
            if (waitByType > waitForClosing) {
                waitForClosing = waitByType;
            }
        }

        makeAlertVisible(newAlert, waitForClosing);
    }
/**
     * Determines and handles the show of one alert. This is determined by the already stored
     * alerts, the given showLater and the values inside the new alert. <b>Internal use only.</b>
     *
     * @param currentObjects List of alerts which are stored inside this controller for a specific
     *                       alert type.
     * @param newAlert       alert that needs to be displayed
     * @param showLater      true if the given alert should be displayed later, false otherwise
     * @since 1.0.0
     */
Determines and handles the show of one alert. This is determined by the already stored
alerts, the given showLater and the values inside the new alert. Internal use only.

@param currentObjects List of alerts which are stored inside this controller for a specific
alert type.
@param newAlert       alert that needs to be displayed
@param showLater      true if the given alert should be displayed later, false otherwise
@since 1.0.0
Determines and handles the show of one alert . This is determined by the already stored alerts the given showLater and the values inside the new alert . Internal use only . @param currentObjects List of alerts which are stored inside this controller for a specific alert type . @param newAlert alert that needs to be displayed @param showLater true if the given alert should be displayed later false otherwise @since 1 . 0 . 0
protected void internalShow(@NonNull final LinkedList<AlertImpl> currentObjects, @NonNull final AlertImpl newAlert, final boolean showLater) {
        currentObjects.addLast(newAlert);
        if (showLater) {
            return;
        }
        List<AlertImpl> currentActiveObjects = getCurrentActiveList(newAlert.getAlertType());
        long waitForClosing = 0;
        if (newAlert.hasPriority()) {
            int newAlertPrio = newAlert.getPriority();
            if (newAlertPrio < getCurrentHighestPriority(newAlert.getAlertType())) {
                setCurrentHighestPriority(newAlert.getAlertType(), newAlertPrio);
                waitForClosing = internalHideByType(newAlert.getAlertType());
            } else {
                return;
            }
        } else if (newAlert.isClosingOthers() && !currentActiveObjects.isEmpty()) {
            long waitByType = internalHideByType(newAlert.getAlertType());
            if (waitByType > waitForClosing) {
                waitForClosing = waitByType;
            }
        }
        makeAlertVisible(newAlert, waitForClosing);
    }
protected void internalShow ( @ NonNull final LinkedList < AlertImpl > currentObjects , @ NonNull final AlertImpl newAlert , final boolean showLater ) { currentObjects . addLast ( newAlert ) ; if ( showLater ) { return ; } List < AlertImpl > currentActiveObjects = getCurrentActiveList ( newAlert . getAlertType ( ) ) ; long waitForClosing = 0 ; if ( newAlert . hasPriority ( ) ) { int newAlertPrio = newAlert . getPriority ( ) ; if ( newAlertPrio < getCurrentHighestPriority ( newAlert . getAlertType ( ) ) ) { setCurrentHighestPriority ( newAlert . getAlertType ( ) , newAlertPrio ) ; waitForClosing = internalHideByType ( newAlert . getAlertType ( ) ) ; } else { return ; } } else if ( newAlert . isClosingOthers ( ) && ! currentActiveObjects . isEmpty ( ) ) { long waitByType = internalHideByType ( newAlert . getAlertType ( ) ) ; if ( waitByType > waitForClosing ) { waitForClosing = waitByType ; } } makeAlertVisible ( newAlert , waitForClosing ) ; }
Determines and handles the show of one alert.
Determines and handles the show of one alert .