-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
Refactor sidewalk surface quest #3873
Refactor sidewalk surface quest #3873
Conversation
Also, downgrade is that the icons for each side are no longer shown in circles, and the title of the surface is displayed on each side, but you can't really see it behind the icon. |
On the
Why though? The side select puzzle supports setting a |
# Conflicts: # app/src/main/java/de/westnordost/streetcomplete/quests/surface/AddSidewalkSurfaceForm.kt
I've done the serializing and it all seems to work
The problem I've run into with the above is that in |
can't items be (Sorry I didn't look into the code yet) |
app/src/main/java/de/westnordost/streetcomplete/quests/surface/AddSidewalkSurfaceForm.kt
Outdated
Show resolved
Hide resolved
That was it, thanks. Now ready for review. The only change in functionality from before is that it now shows the surface on the road in the view after it has been selected (but somewhat hidden behind the icon). |
Sorry, forgot about this. Will review this soon |
I'm working on this now. I needed to checkout the branch to read up on it, so I started to do all kinds of small adjustments (some unrelated to the PR but to the topic), so whatever I'll find maybe imperfect with this PR I'll fix it myself. Maybe I'll also get around to also let the |
Hmm, I'll do the ViewController stuff later after all. What I changed on your PR was to
|
Thanks for doing all that! |
Refactoring sidewalk surface quest to use
AStreetSideSelectFragment
as suggested in original PR.Things missing were:
Both of these are good things to have if cycleway and parking quests were to be refactored to use
AStreetSideSelectFragment
I'm not 100% sure about the way in which I've added them both, but they do work.
The problem remaining though is the last answer button.
LastPickedValuesStore
assumes that it can convert the last answer to and from a string, however here the last answer value is something likeSurfaceAnswer(value=ASPHALT, note=null)
. This gets split on the comma and totally fails when it attempts to convert it back.I'm not sure of the best way to solve this in general.