diff --git a/app/src/main/java/michaelbrabec/bakalab/fragments/UkolyFragment.java b/app/src/main/java/michaelbrabec/bakalab/fragments/UkolyFragment.java index d06b77d..b925782 100644 --- a/app/src/main/java/michaelbrabec/bakalab/fragments/UkolyFragment.java +++ b/app/src/main/java/michaelbrabec/bakalab/fragments/UkolyFragment.java @@ -38,9 +38,11 @@ import michaelbrabec.bakalab.interfaces.UkolyInterface; import michaelbrabec.bakalab.items.UkolItem; import michaelbrabec.bakalab.utils.BakaTools; +import michaelbrabec.bakalab.utils.SharedPrefHandler; import michaelbrabec.bakalab.utils.Utils; + public class UkolyFragment extends Fragment implements Callback, UkolyInterface { Callback callback; @@ -77,8 +79,8 @@ public void onCallbackFinish(Object result) { List listTodo = new ArrayList(); List listFinished = new ArrayList(); - for (UkolItem ukolItem : resultList) - if (ukolItem.getStatus().equals("probehlo")) + for(UkolItem ukolItem : resultList) + if (ukolItem.getStatus().equals("probehlo") || (SharedPrefHandler.getDefaultBool(context, "ukoly_done") && ukolItem.getStatus().equals("pozde"))) listFinished.add(ukolItem); else listTodo.add(ukolItem);