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

Some bugfixes and performance improvements #12

Merged
merged 4 commits into from Nov 29, 2015
Merged

Conversation

zsparal
Copy link
Contributor

@zsparal zsparal commented Nov 29, 2015

This should fix the bugs in the Critical Items and Recently Unlocked views. It also speeds up the Progress Details screen by caching fonts (it previously froze my phone for a few seconds, now it works as expected).

Closes #10

Introduced font caching to avoid the repeated creation of the normal and custom fonts. This resolves the visible pause on the progress screen when there are a lot of items in the remaining queue.
The detail page never had the chance to load the actual details for the selected symbol because the loadData() method always ran before the async request to fetch the data completed.
The item types were incorrectly compared against strings instead of the appropriate enum variants.
@xiprox
Copy link
Owner

xiprox commented Nov 29, 2015

Thanks for the contribution! Must have been painful...fixing that code. 😛

@xiprox
Copy link
Owner

xiprox commented Nov 29, 2015

Note: ItemDetailsActivity is messed up at this point. Not sure if anything here did it. Won't be looking into it much though as I'll be working on a redesign there.

@zsparal
Copy link
Contributor Author

zsparal commented Nov 29, 2015

The ItemDetailsActivity seems to work for me, what's the issue you're having?

@xiprox
Copy link
Owner

xiprox commented Nov 29, 2015

Try a Kanji item that is burned. Some fields (User synonyms, reading/meaning notes) that should be GONE are there.

@zsparal
Copy link
Contributor Author

zsparal commented Nov 29, 2015

That would explain it, I only have stuff that's enlightened at everything seemed fine there. One things that is messed up is Radicals/Kanji/Vocab lists, I think I missed some enum<->string comparisons. I'll send an other PR to fix it.

@xiprox
Copy link
Owner

xiprox commented Nov 29, 2015

No issues. 👍

@zsparal
Copy link
Contributor Author

zsparal commented Nov 29, 2015

Oh, never mind, the indicator on those lists is the SRS level. It's confusing since it uses the same colors for Radical/Kanji/Vocab as Enlightened/Apprentice/Guru. I've been thinking about doing some performance improvements and fixing #5, but if you're doing a redesign then I'm probably not going to do it (it's a fairly time-consuming task).

@xiprox
Copy link
Owner

xiprox commented Nov 29, 2015

Well, I'm only using what the site uses itself, so yeah...

I'm doing the redesign only on the ItemDetailsActivity. Not much else. Feel free to work on that.

@xiprox
Copy link
Owner

xiprox commented Dec 1, 2015

Redesign done in ddd2939.

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

Successfully merging this pull request may close these issues.

None yet

2 participants