Skip to content

Commit

Permalink
add safe_loops in bicycle_parking quest (fixes #5774)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcliquid authored and westnordost committed Oct 14, 2024
1 parent 7ece883 commit 31abc94
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package de.westnordost.streetcomplete.quests.bike_parking_type
enum class BikeParkingType(val osmValue: String) {
STANDS("stands"),
WALL_LOOPS("wall_loops"),
SAFE_LOOPS("safe_loops"),
SHED("shed"),
LOCKERS("lockers"),
BUILDING("building"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ fun BikeParkingType.asItem() = Item(this, iconResId, titleResId)
private val BikeParkingType.titleResId: Int get() = when (this) {
STANDS -> R.string.quest_bicycle_parking_type_stand
WALL_LOOPS -> R.string.quest_bicycle_parking_type_wheelbender
SAFE_LOOPS -> R.string.quest_bicycle_parking_type_safeloops
SHED -> R.string.quest_bicycle_parking_type_shed
LOCKERS -> R.string.quest_bicycle_parking_type_locker
BUILDING -> R.string.quest_bicycle_parking_type_building
Expand All @@ -20,6 +21,7 @@ private val BikeParkingType.titleResId: Int get() = when (this) {
private val BikeParkingType.iconResId: Int get() = when (this) {
STANDS -> R.drawable.bicycle_parking_type_stand
WALL_LOOPS -> R.drawable.bicycle_parking_type_wheelbenders
SAFE_LOOPS -> R.drawable.bicycle_parking_type_safeloops
SHED -> R.drawable.bicycle_parking_type_shed
LOCKERS -> R.drawable.bicycle_parking_type_lockers
BUILDING -> R.drawable.bicycle_parking_type_building
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/authors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ barrier_bicycle_installation_r… CC0 LEGOFAHRRAD https://commons.

bicycle_parking_type_buildi... CC-BY-SA 3.0 Visitor7 https://commons.wikimedia.org/wiki/File:Bike_Storage_(YAUS).jpg
bicycle_parking_type_locker... CC-BY-SA 3.0 Rept0n1x https://commons.wikimedia.org/wiki/File:Bicycle_lockers_at_Gathurst_railway_station.JPG
bicycle_parking_type_safel... CC0 1.0 RogerWiki https://commons.wikimedia.org/wiki/File:Fahrradst%C3%A4nder_mit_Anlehnb%C3%BCgel_2.jpg
bicycle_parking_type_shed.jpg CC-BY-SA 3.0 Tabl-trai https://commons.wikimedia.org/wiki/File:Parking_v%C3%A9los_s%C3%A9curis%C3%A9_gare_des_Martres_2015-08-20.JPG
bicycle_parking_type_stand.jpg CC0 Mateusz Konieczny https://commons.wikimedia.org/wiki/File:Bicycle_parking_stand_2.jpg
bicycle_parking_type_wheelb... CC-BY-SA 4.0 Joxemai https://commons.wikimedia.org/wiki/File:Bizikletak_lotzekoa.JPG
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,7 @@ Before uploading your changes, the app checks with a <a href=\"https://www.we
<string name="quest_bicycle_parking_type_title">What type of bicycle parking is this?</string>
<string name="quest_bicycle_parking_type_stand">Stand (supports bicycle frame)</string>
<string name="quest_bicycle_parking_type_wheelbender">Wheelbender (supports wheel only)</string>
<string name="quest_bicycle_parking_type_safeloops">Safe Loops (supports wheel and frame)</string>
<string name="quest_bicycle_parking_type_shed">Shed</string>
<string name="quest_bicycle_parking_type_locker">Locker</string>
<string name="quest_bicycle_parking_type_building">Building</string>
Expand Down

0 comments on commit 31abc94

Please sign in to comment.