-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Multiple collection times on the same weekdays as selected before #2109
Multiple collection times on the same weekdays as selected before #2109
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, thank you! I just have a few small comments.
Did you test it?
...java/de/westnordost/streetcomplete/quests/postbox_collection_times/AddCollectionTimesForm.kt
Outdated
Show resolved
Hide resolved
...java/de/westnordost/streetcomplete/quests/postbox_collection_times/CollectionTimesAdapter.kt
Outdated
Show resolved
Hide resolved
...java/de/westnordost/streetcomplete/quests/postbox_collection_times/CollectionTimesAdapter.kt
Outdated
Show resolved
Hide resolved
Will change them in the morning, thanks.
I tested it on my phone from the Dev app that Android studio runs on the phone, yes. The UI works fine, but I don't know how to test if the changes really check out in reality. What's your way of checking if then changes you made create the desired result in the OSM Data? |
I run the app without being logged in, then I solve a quest and look at the log in Android Studio (filter by "QuestController" to remove the noise), there you can see what will be tagged. |
Nice touch, thanks! Next enhancement: display a message box with the changes if app is in debug mode 😬 |
Right, good idea, I implemented it. It is in the settings menu -> show quest forms (last entry) |
@westnordost I just realized that you already put |
Yes. It makes sense to revisit collection times every few years. To implement that previous collection times are shown was something I deemed to be too much effort for the gain. See #2105 |
Looks good, merging! |
Closes #2108.
Quest for adding collection times to
amenity=post_box
nodes was changed.Just like the quest for adding opening times, this quest will now, if there already is a row, ask if you want to add a collection time to the same weekday(s) as the row before or if you want to add more weekdays.
CollectionTimesAdapter.addNew()
was intentionally left in the code (I'm not sure if Android Studio correctly finds all references) bur callsaddNewWeekdays()
. If this should be removed, please advise @westnordost.