Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Critical items all appear as locked #10

Closed
iamPHEN opened this issue Oct 1, 2015 · 4 comments
Closed

Critical items all appear as locked #10

iamPHEN opened this issue Oct 1, 2015 · 4 comments
Labels

Comments

@iamPHEN
Copy link

iamPHEN commented Oct 1, 2015

All my critical items appear as locked from the main dashboard, and greyed out. Clicking on them says progress is locked, but I definitely seen them in reviews.

@xiprox
Copy link
Owner

xiprox commented Oct 3, 2015

Well, for an item to be a critical item, it has to be unlocked first and answered wrongly, to begin with. Can you provide me your API key? You can email it to x.ihsan@gmail.com.

@xiprox
Copy link
Owner

xiprox commented Oct 5, 2015

Yeah, the API returns null for the user_specific field for critical items. What I'm doing is: I'm passing the CriticalItem from the list to ItemDetailsActivity. ItemDetailsActivity is set to fetch a complete item if the item passed to it is a CriticalIem or an UnlockItem. Fetching a complete item is done by pulling the whole list of radicals/kanji/vocabulary for the level of the passed item and then finding the passed item in the list. The item then has all the necessary information. I did some debugging yesterday and it seems to be good. Something just doesn't work there though.

Also, I fixed grey items in dashboard, in case you would look into that.

@ekarcnevets
Copy link

Ok great, thanks for getting back to me.

@xiprox
Copy link
Owner

xiprox commented Oct 5, 2015

Don't even mention it. In fact, thanks for the help. Also, my code in here is messed up at places and the lack of proper comments must be making it pretty hard to read, sorry about that. Feel free to ask anything you have trouble with.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants