Commit 00dfa8aa authored by Fabius's avatar Fabius

FIX: Daten der Mensen können nicht mehr am Wochenende liegen, auch wenn die...

FIX: Daten der Mensen können nicht mehr am Wochenende liegen, auch wenn die App Samstags aufgerufen wird. #16
parent 0ba6782f
...@@ -91,6 +91,13 @@ public class ExpandableMensaList extends AbstractASiSTFragment { ...@@ -91,6 +91,13 @@ public class ExpandableMensaList extends AbstractASiSTFragment {
//Adding Daten //Adding Daten
for(int i = 0;i < 5;i++){ for(int i = 0;i < 5;i++){
if(calendar.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY){
add(calendar);
add(calendar);
}
if(calendar.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY){
add(calendar);
}
daten.add(cleanDate(calendar)); daten.add(cleanDate(calendar));
List<CanteenMenu> firstMenuList = new ArrayList<CanteenMenu>(); List<CanteenMenu> firstMenuList = new ArrayList<CanteenMenu>();
firstMenuList.addAll(selectedCanteen.getMenuItems()); firstMenuList.addAll(selectedCanteen.getMenuItems());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment