Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
vojta-horanek committed Jan 13, 2019
2 parents 17f3a68 + cb37dd4 commit c9524bc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -77,8 +79,8 @@ public void onCallbackFinish(Object result) {
List<UkolItem> listTodo = new ArrayList<UkolItem>();
List<UkolItem> listFinished = new ArrayList<UkolItem>();

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);
Expand Down

0 comments on commit c9524bc

Please sign in to comment.