-
-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening hours: interface "jumps" when selecting closing time hour #4763
Comments
Indeed it does, now that I look closely, I can confirm on Android 10 / SC v50.2 ! So that's why I almost always hit opening times OK, but often miss when clicking closing times! I always though that were just my fat fingers, but here is the evidence that that is indeed this bug: small_SVID_20230127_011519_1.mp4If you look frame by frame, you'll see that I clearly clicked on closing time Great catch @pinkdroyd , this has been driving me nuts but I never noticed that it scrolls! |
It seems related to how "open end" checkbox appears. I guess that it can be added earlier? |
From a usability perspective it makes the most sense to always show the "open end" checkbox in the closing time screen. Right now you have to enter a (wrong) time just to make the checkbox appear and then be able to click on the checkbox. |
oh, that would be extra thing to improve the selected hour combined with open end means "it will be definitely open by that time, likely open also later" |
In version 51 I am still experiencing the jump as shown in the video at the top of this issue. |
Uhh, so the issue seems to be that the "open end" checkbox is hidden for some reason before the time view is tapped |
You could always have the checkbox in the view ("start" and "end"), but set it invisible at start, then set it to visible when switching to "end". |
How's that possible? The start and end views are two separate layouts. |
You can simply use the same layout for both then. |
It has that large empty space for me currently in |
I would like to have the issue solved at the root cause for this. If possible. I.e. why does the end-layout initially not show the view? After all, it is not set to gone at the moment. Also, if you do a PR, it should probably revert the earlier attempt to fix this which made it so that the picker would be cut off in landscape mode, if I remember correctly (by removing the scrollview. I thought that would be the cause of this issue). |
Anyway, I tried some things, but to no avail. I think the main issue is that the ViewPager2 works with a RecyclerView and a RecyclerView does not expect its elements to have different dimensions (in this case: height). So, I gave up and basically implemented what @Helium314 suggested. |
Missing opening hours quest: At the moment when I click on the hour for closing time the checkbox for open end appears below the hour radial selector. With that the radial hour selector slightly moves up which leads to a misclick and a wrong hour entered.
How to Reproduce
Select the quest to add missing opening hours. Enter opening time and click on next. Click on an hour for closing time.
Expected Behavior
Checkbox for open end is visible from the start and does not appear during clicking. That way the UI does not shift and the correct hour is entered.
Versions affected
Android 10 (security updates from Aug 2022)
StreetComplete v50.2 installed from GooglePlay
This problem has existed for longer than the current version.
The text was updated successfully, but these errors were encountered: