Fixed Japanese font weight inconsistencies @skaldebane
Changed search bar and search button shape
Fixed full screen search swipe to go back bug @Yuserys
Removed profile avatar animation on opening profile
Subject mnemonic markup highlight now in 3D-like form
Fixed pronunciation audio not showing for the katakana variant in subject info
@Yuserys in light of the notifications you mentioned, I made a tweak to it that I never got around to testing but the idea is when you have the app in foreground notifications are paused until you leave the app. Again, this wasn’t tested so please let me know if you notice any change or if notifications break in general.
@skaldebane about the font weight inconsistency, I don’t get the issue on my devices but tested with them regardless and with the emulators I have. Please let me know if they are fixed when you get this version.
I may or may not have fixed all the bugs reported in the last couple of days. Please let me know of any that wasn’t fixed.
Aside: I will be going on that break I never got to.
I am interested in becoming a tester (I’ve been using WK for a few years, lvl 31), however please be aware my skills and knowledge are lacking when it comes to technology.
I see you’re about to go on a break (as am I) so please reply whenever it is convenient for you if you would like to include me as a tester
Hi @TexasToast97, happy to have you. I’d love to add you as a tester but want you to know the first public release of the app will be available in the next few days. Let me know if you want to wait for that or not. If no, I will go ahead and add you so you can start using the app as a tester – all I need from you is to add your email to this sheet below:
That’s exciting that it’s going to be publicly released!!
If it’s ok, I will wait and use it then. Will you still be wanting feedback on the app and is this to place to submit it at? I’d still like to be helpful if I can.
For existing testers, you can simply update the version you are currently running with this. The version number is 1.16.733. In the case you are unable to update, please let me know.
In the review forecast, I guess not drawing the number at all if the bar is too small might make things better. You can use the text measurer to check that, and maybe rely on a canvas for the whole thing.
Also, I’m unsure what’s going on in Tuesday’s 5:00 am bar in the screenshot, the blue bar is slightly taller, the number doesn’t match the bar, etc…
Another screenshots where the numbers are very crammed:
One feature I still miss is the Patterns of Use above context sentences… unfortunately there’s no API for that, but it’s possible to fetch the HTML for the item (from www.wanikani.com/{type}/{item}) and parse them out directly from there. I can draft an implementation of that if you find this a good idea.
Obviously to not DDOS WK’s servers, this should probably be on-demand (i.e. only load when the user opens the lesson / review info), and probably be cached for later use. That way it’s the same amount of requests that the user would’ve done if they’re on the main website (probably less when it comes to reviews).
This might be an issue with smaller device width as I can’t reproduce it on any of my devices. Here is a screenshot on my end (subject screen – can’t show a lesson slide for same subject since I have already taken it)
Also, there is no additional padding in the code other than the one included in the highlighted text.
Will look into it.
Yes, that would be a way to handle it.
The idea is if the text is too longer than the available space for rendering text it gets clipped.
I would like to go the “no fetch/parse” route if possible. You are the second person requesting this, so I will have to look into where WaniKani gets the info from (originally thought it was Jisho, but I was wrong). You can whip up an implementation and I’ll have a look. By the way, don’t WK require you to be logged in to access subjects?
Trust me, my screen is really not small
I also tried reducing the system screen zoom from the default to the smallest, and the issue persists.
Since you’re not seeing the issue, maybe this has something to do with Android 12 in particular? or my system font? Not sure honestly, all my experiments were on Compose Desktop… I will experiment with this on my phone and different emulators and get back to you.
Yeah that would be much better if you can figure out the source of the data.
Sure! WaniKani doesn’t seem to require login for subjects at all. Tried accessing the pages in private browsing, and they load without any problems (including from paid levels).
I was simply going to run my initial implementation code on mobile to see if there’s any issues with inline content on my end (and try your app on different emulators to see if I can reproduce this).
For the latest update (now open testing) here is what’s new:
Fixed bleeding edges in lessons slide
UI fixes for lessons slides
Round corners for new unlocks, critical items and burned items lists on the dashboard
Navigation drawer can now only be opened with the Menu icon, once open swipe left or tap an area outside of the drawer to close it
Full screen search keyboard should now show “Done” or a checkmark
The avatar should now show a progress indicator whenever a background work is ongoing. This can be short bursts like on returning to the dashboard or during audio downloading if you selected to download audios during onboarding.
Additionally, since this is now open test, the app launcher icon should now have a white on a pink background. The version number in About should no longer show “-internal”.
Thinking more about it, I got extremely weirded out, because what on earth could be causing this?
There’s only 3 things that could affect the result this bad:
Density: I tried changing this, but on my device it still looked broken, and on the emulator it still looked fine… and I generally made sure to handle it properly in my implementation, so having it break is a bug somewhere.
System font: I do have a custom font on my main device, but your app uses its own font everywhere, so… nah?
Font scale: This is independent of density, as it only affects text. Wait, I never checked this. Never even changed it while implementing this…
So tried changing the font scale on the emulator, and voila:
Basically the reason for this is that I’ve changed the text scale from “Default” to “Large” on my phone (and then totally forgot about it). This is probably also the reason why my screenshots may have felt a bit crammed, like a small phone
(since very few people tweak font scale, this was probably a good stroke of luck so this gets fixed early xD)
Anyways, I’ll try playing with the implementation and figure out which parts need changing. I’ve made sure to use density-aware conversions, but since there’s text I probably should’ve relied on TextUnit instead of Dp when converting to/from pixels in certain places, which would make use of text scale and convert properly. Will post updates on the Gist.
Update: The original implementation doesn’t seem to have this issue:
After some dabbling on Android… I think I got it. .toSp() is what I use to convert Dp into TextUnit for the placeholder height and width, in a font-scaling-aware fashion.
On desktop, its implementation is as simple as value / fontScaling.
The Android implementation however… a quick peak will tell you that it’s not that trivial:
Damn, it’s using non-linear font scaling… which applies after any scale higher than 1.03f (i.e. it’s always applied; for reference, my phone has 1.1f font scaling).
This was introduced in a recent Android version (12 or 13 iirc?), and as the name suggests this scales non-linearly depending on the text size (in our case the Dp value). The aim is to scale small text more and scale bigger text a lot less (so big titles don’t become huge and look broken, as they’re already readable enough).
It also explains why we see the effect outsized in the width but not much in the height.
The fix is simple: do a simple division like Compose Desktop’s toSp():
This right here explains the inconsistency between the desktop and mobile. I recall having to avoid toSp() for some reason in the project and doing conversions just like it is done for the desktop because of issues like this. Thank you
Cool, will have a look. This might just be a trigger to overhaul lessons and reviews item info.
I changed the reviews breakdown on the reviews card so a badge with the breakdown versus having both shown (only seen when that option is turned on in settings)
The aforementioned are now available in the published version 1.17.752.