app/src/main/java/com/mensa/zhmensa/services/MensaManager.java
// If new Mensas were loaded.
If new Mensas were loaded.
If new Mensas were loaded .
@Override
                public void update(Observable obs, Object o) {
                    category.setLastUpdated(Helper.getStartOfWeek().getMillis());
                    if(observable.apiMensaLoaded) {
                        addNewApiMensaItem(observable.getNewItems(), category);
                    } else {
                        addNewMensaItem(observable.getNewItems(), category, observable.day, observable.mealType, true);
                    }
                    onLoadedObservable.loadingFinished();
                }
@ Override public void update ( Observable obs , Object o ) { category . setLastUpdated ( Helper . getStartOfWeek ( ) . getMillis ( ) ) ; if ( observable . apiMensaLoaded ) { addNewApiMensaItem ( observable . getNewItems ( ) , category ) ; } else { addNewMensaItem ( observable . getNewItems ( ) , category , observable . day , observable . mealType , true ) ; } onLoadedObservable . loadingFinished ( ) ; }
If new Mensas were loaded.
If new Mensas were loaded .
//        Log.d("MensaManager-Observable", "Got Updates for loadMensaFromAPI()"); // If we have the new API. All Days and mealtypes will be loaded if the observer is triggered // Add every new mensa to the mensa mapping. This will notify all listeners and they will appear in the sidebar. // In case that we used the old api, we only loaded a specific day and mealtype