From 6de0cd79451ef1f1f22e099c7af9ad638dad6de6 Mon Sep 17 00:00:00 2001 From: Matija Nalis Date: Mon, 1 Nov 2021 01:44:04 +0100 Subject: [PATCH 01/12] update branch name --- CHANGES-mnalis.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES-mnalis.md b/CHANGES-mnalis.md index aee95224ab..351dff82c4 100644 --- a/CHANGES-mnalis.md +++ b/CHANGES-mnalis.md @@ -1,9 +1,9 @@ -## Changes in mnalis-v37 branch +## Changes in mnalis-v37-helium314 branch -This file details changes made in https://github.com/mnalis/StreetComplete/tree/mnalis-v37 +This file details changes made in https://github.com/mnalis/StreetComplete/tree/mnalis-v37-helium314 as modified from upstream https://github.com/streetcomplete/StreetComplete -From `mnalis-v37` branch: +From `mnalis-v37-helium314` branch: * update email/github links to this repository so upstream is not bothered with bugs introduced here * show ALL notes @@ -11,6 +11,9 @@ From `mnalis-v37` branch: including your own (only hide notes that user explicitely asked to hide, and which can be unhidden via `Restore hidden quests` preference) +From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: +* FIXME + ## TODO * update APK build code, and put date/version/last commit in filename. Also, is it possible to download apk directly from actions, or must it be packed in debug.zip ? From df4dbf2b9888d81d9390c7b8722a945b37d16d85 Mon Sep 17 00:00:00 2001 From: Helium Date: Wed, 11 Aug 2021 21:40:04 +0200 Subject: [PATCH 02/12] move "no cycleway" answer to different position --- .../westnordost/streetcomplete/quests/cycleway/CyclewayItem.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/cycleway/CyclewayItem.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/cycleway/CyclewayItem.kt index 21cb1ecabe..b0a06071b6 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/cycleway/CyclewayItem.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/cycleway/CyclewayItem.kt @@ -69,13 +69,13 @@ fun Cycleway.getTitleResId(): Int = when(this) { } val DISPLAYED_CYCLEWAY_ITEMS: List = listOf( - NONE, TRACK, EXCLUSIVE_LANE, ADVISORY_LANE, UNSPECIFIED_LANE, SUGGESTION_LANE, SEPARATE, + NONE, PICTOGRAMS, BUSWAY, SIDEWALK_EXPLICIT, From 34d123a1fd19e62f63e9984722d351fc8a2477d7 Mon Sep 17 00:00:00 2001 From: Matija Nalis Date: Mon, 1 Nov 2021 01:54:35 +0100 Subject: [PATCH 03/12] docs: move "no cycleway" answer to different position --- CHANGES-mnalis.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGES-mnalis.md b/CHANGES-mnalis.md index 351dff82c4..ba15bc10d2 100644 --- a/CHANGES-mnalis.md +++ b/CHANGES-mnalis.md @@ -12,7 +12,7 @@ From `mnalis-v37-helium314` branch: and which can be unhidden via `Restore hidden quests` preference) From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: -* FIXME +* move "no cycleway" answer to different position (commit 1af6ce536211bd005a927414b372aa3c360f0620) ## TODO * update APK build code, and put date/version/last commit in filename. @@ -35,7 +35,6 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * add level quests for shopping malls (commit b2ae6032809b25f206daaf1deb79fe98693e8198) * update contact quests (commit 2dddd0b2d49ffa6c5dc2d67bd629cfcbce8537c5) -- FIXME: it also removes key_cutter, hostel etc, why? * adjust dark theme (commit 3251e335c7839520a2eb95b120d6ad88d333f19c) - * move "none" answer for cycleway to more convenient position (commit 4812c692041d3c3b5ccd4dbbe249132c107317e1) * add per-quest settings for some quests (for element selection) (commit a60a389024f7db64091b25c950e511180c3a5ff9) * add maxspeed tag selection to per-quest-settings (commit e256a94617d6465db3a6cef92b89ef83e6665d35) * x 148a60f1b remove ShowFixme() and other Show() which are in other Helium314 patches we didn't import @@ -69,7 +68,6 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * re-ask surface for badly tagged tracks (by matkoniecz) (commit 94d444069bb4918b6b9a9248470ecd9825b3d14e) * add hide button (commit 6ca8a6d38ee0e408dc38cd52cdd213c333c251c6) * adjust dark theme (commit 9dbf3908180edcb30f1b0464a62f5c134a47c0b0) - * move "no cycleway" answer to different position (commit 1af6ce536211bd005a927414b372aa3c360f0620) * rename package and app (in changesets) (commit 8694cf185b7dff21308ec712f04928d786934075) * small fixes (commit b6daf8211e8f440a043ce179ec78cb9eef409939) From 0696a9078bf5fc9c4d94dee0429e0ab17bac1cf4 Mon Sep 17 00:00:00 2001 From: Helium Date: Wed, 11 Aug 2021 21:47:36 +0200 Subject: [PATCH 04/12] add hide button (with merge conflicts) --- CHANGES-mnalis.md | 3 +-- .../quests/AbstractQuestAnswerFragment.kt | 3 +++ app/src/main/res/layout/fragment_quest_answer.xml | 13 +++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/CHANGES-mnalis.md b/CHANGES-mnalis.md index ba15bc10d2..4058a0b321 100644 --- a/CHANGES-mnalis.md +++ b/CHANGES-mnalis.md @@ -13,6 +13,7 @@ From `mnalis-v37-helium314` branch: From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * move "no cycleway" answer to different position (commit 1af6ce536211bd005a927414b372aa3c360f0620) +* add hide button (commit 6ca8a6d38ee0e408dc38cd52cdd213c333c251c6) ## TODO * update APK build code, and put date/version/last commit in filename. @@ -31,7 +32,6 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * add phone number and website quests (commit a01c492bdc1f7385a7b83acd59fed5100fc55cdf) * add poi "quests" and adjust quest dot offset (commit 2ea50a4433d9db5b5101a739efd4c9e4282959fc) -- add 'FIXME' quest only, but not offsets etc * add gpx notes (commit a01bc6a2ba54fca1c791237571d6b08a4f1ceb2e) -- BUGGY on -dev version no pictures, no easy sharing of notes - * add 'hide' button (commit 87fce03ec2d2efaa578920eb79da179c24c86587) * add level quests for shopping malls (commit b2ae6032809b25f206daaf1deb79fe98693e8198) * update contact quests (commit 2dddd0b2d49ffa6c5dc2d67bd629cfcbce8537c5) -- FIXME: it also removes key_cutter, hostel etc, why? * adjust dark theme (commit 3251e335c7839520a2eb95b120d6ad88d333f19c) @@ -66,7 +66,6 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * add phone and website quests (commit 8e65bacde415860fd3e29a402d3cd9056a4e187f) * show pois and adjust quest dot and pin offsets (commit 8cf33fab948a3c3e1615a61b3b1638659e6cae71) * re-ask surface for badly tagged tracks (by matkoniecz) (commit 94d444069bb4918b6b9a9248470ecd9825b3d14e) - * add hide button (commit 6ca8a6d38ee0e408dc38cd52cdd213c333c251c6) * adjust dark theme (commit 9dbf3908180edcb30f1b0464a62f5c134a47c0b0) * rename package and app (in changesets) (commit 8694cf185b7dff21308ec712f04928d786934075) * small fixes (commit b6daf8211e8f440a043ce179ec78cb9eef409939) diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/AbstractQuestAnswerFragment.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/AbstractQuestAnswerFragment.kt index 23161c034e..04232c7d72 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/AbstractQuestAnswerFragment.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/AbstractQuestAnswerFragment.kt @@ -191,6 +191,9 @@ abstract class AbstractQuestAnswerFragment : if (binding.content.childCount == 0) { binding.content.visibility = View.GONE } + + binding.hideButton.popIn() + binding.hideButton.setOnClickListener { skipQuest() } } override fun onDestroyView() { diff --git a/app/src/main/res/layout/fragment_quest_answer.xml b/app/src/main/res/layout/fragment_quest_answer.xml index 7a3abf4a74..a47f66fb0f 100644 --- a/app/src/main/res/layout/fragment_quest_answer.xml +++ b/app/src/main/res/layout/fragment_quest_answer.xml @@ -172,6 +172,19 @@ android:visibility="gone" /> + + From cdb3bafb2690beebbb4cce623269322e971f2eba Mon Sep 17 00:00:00 2001 From: Helium Date: Thu, 30 Sep 2021 15:05:30 +0200 Subject: [PATCH 05/12] also make buildings on light theme more transparent --- CHANGES-mnalis.md | 10 +--------- .../map_theme/jawg/streetcomplete-light-style.yaml | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/CHANGES-mnalis.md b/CHANGES-mnalis.md index 4058a0b321..2e0ed9d1cf 100644 --- a/CHANGES-mnalis.md +++ b/CHANGES-mnalis.md @@ -14,6 +14,7 @@ From `mnalis-v37-helium314` branch: From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * move "no cycleway" answer to different position (commit 1af6ce536211bd005a927414b372aa3c360f0620) * add hide button (commit 6ca8a6d38ee0e408dc38cd52cdd213c333c251c6) +* also make buildings on light theme more transparent (commit edd770106132915823829b5da4aacf1a434ef651) ## TODO * update APK build code, and put date/version/last commit in filename. @@ -31,7 +32,6 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: newer commit b00ed7484fd77f968bb69d6e182333a454e729d1 and reverse 5462928489a6c5afebf3495f5b8ef1b64e645976, is there even newer? * add phone number and website quests (commit a01c492bdc1f7385a7b83acd59fed5100fc55cdf) * add poi "quests" and adjust quest dot offset (commit 2ea50a4433d9db5b5101a739efd4c9e4282959fc) -- add 'FIXME' quest only, but not offsets etc - * add gpx notes (commit a01bc6a2ba54fca1c791237571d6b08a4f1ceb2e) -- BUGGY on -dev version no pictures, no easy sharing of notes * add level quests for shopping malls (commit b2ae6032809b25f206daaf1deb79fe98693e8198) * update contact quests (commit 2dddd0b2d49ffa6c5dc2d67bd629cfcbce8537c5) -- FIXME: it also removes key_cutter, hostel etc, why? * adjust dark theme (commit 3251e335c7839520a2eb95b120d6ad88d333f19c) @@ -40,7 +40,6 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * x 148a60f1b remove ShowFixme() and other Show() which are in other Helium314 patches we didn't import * replace helium314 reverse quest order button with quick preset change button? - * also make buildings on light theme more transparent (commit edd770106132915823829b5da4aacf1a434ef651) * make buildings more transparent (dark mode only) (commit 367b904990f1824eb2c114ec48ef44f1393afd1b) * disable 3D (commit f379fc78376212362d47f9efa3b6b7692031bfcf, 08a791676728d683849938f8a7c03a2bbee92131, 825afd551347cb1add9446d72c5df896e98893e8) * update icons (commit bce1e5569137bfdef5468d8f861c6363c70aec5b) @@ -68,13 +67,6 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * re-ask surface for badly tagged tracks (by matkoniecz) (commit 94d444069bb4918b6b9a9248470ecd9825b3d14e) * adjust dark theme (commit 9dbf3908180edcb30f1b0464a62f5c134a47c0b0) * rename package and app (in changesets) (commit 8694cf185b7dff21308ec712f04928d786934075) - * small fixes (commit b6daf8211e8f440a043ce179ec78cb9eef409939) - - Not wanted yet: - * add button to reverse quest order (commit 1982e79ef618444bc41cb609f9d5270805a24ab2) - * (preparing for westnordost presets) - add quest profiles (commit 3d97a952d355e2ef4b4ee3c6db0670cda60f5876) - * auto-download only if auto-upload is allowed (commit 52cf846a7544c5c1fbf39f1ef0cae8eb93b945ab) - * add optional zoom with volume buttons (commit 56466f34760db956fd385eef700553f2a3013003) * allow house address quest even if no building type ? See [issue #2464](https://github.com/streetcomplete/StreetComplete/issues/2464) diff --git a/app/src/main/assets/map_theme/jawg/streetcomplete-light-style.yaml b/app/src/main/assets/map_theme/jawg/streetcomplete-light-style.yaml index df266d5276..4f5397af3d 100644 --- a/app/src/main/assets/map_theme/jawg/streetcomplete-light-style.yaml +++ b/app/src/main/assets/map_theme/jawg/streetcomplete-light-style.yaml @@ -18,7 +18,7 @@ global: forest_color: '#a8c884' town_color: '#f3dacd' - building_color: rgba(204, 214, 238, .75) + building_color: rgba(204, 214, 238, .4) building_outline_color: rgba(185, 195, 217, .75) boundary_color: '#f3c' From 6f027e1170cdd1b131927efd16c13779b2ec7200 Mon Sep 17 00:00:00 2001 From: Helium Date: Wed, 25 Aug 2021 13:14:49 +0200 Subject: [PATCH 06/12] make buildings more transparent (dark mode only) for better visibility of indoor paths --- CHANGES-mnalis.md | 2 +- .../main/assets/map_theme/jawg/streetcomplete-dark-style.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGES-mnalis.md b/CHANGES-mnalis.md index 2e0ed9d1cf..4fadf85b0e 100644 --- a/CHANGES-mnalis.md +++ b/CHANGES-mnalis.md @@ -15,6 +15,7 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * move "no cycleway" answer to different position (commit 1af6ce536211bd005a927414b372aa3c360f0620) * add hide button (commit 6ca8a6d38ee0e408dc38cd52cdd213c333c251c6) * also make buildings on light theme more transparent (commit edd770106132915823829b5da4aacf1a434ef651) +* make buildings more transparent (dark mode only) (commit 367b904990f1824eb2c114ec48ef44f1393afd1b) ## TODO * update APK build code, and put date/version/last commit in filename. @@ -40,7 +41,6 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * x 148a60f1b remove ShowFixme() and other Show() which are in other Helium314 patches we didn't import * replace helium314 reverse quest order button with quick preset change button? - * make buildings more transparent (dark mode only) (commit 367b904990f1824eb2c114ec48ef44f1393afd1b) * disable 3D (commit f379fc78376212362d47f9efa3b6b7692031bfcf, 08a791676728d683849938f8a7c03a2bbee92131, 825afd551347cb1add9446d72c5df896e98893e8) * update icons (commit bce1e5569137bfdef5468d8f861c6363c70aec5b) * update level filter (commit c19129b8b86f810bfdfca3c77c6edbdbc4c98bd1) diff --git a/app/src/main/assets/map_theme/jawg/streetcomplete-dark-style.yaml b/app/src/main/assets/map_theme/jawg/streetcomplete-dark-style.yaml index 2a359b8112..fcfc72a491 100644 --- a/app/src/main/assets/map_theme/jawg/streetcomplete-dark-style.yaml +++ b/app/src/main/assets/map_theme/jawg/streetcomplete-dark-style.yaml @@ -24,8 +24,8 @@ global: forest_color: '#403962' town_color: '#3d364e' - building_color: [0.16, 0.36, 0.36, 0.75] - building_outline_color: [0.12, 0.32, 0.32, 0.75] + building_color: [0.16, 0.36, 0.36, 0.35] + building_outline_color: [0.26, 0.6, 0.6, 0.7] boundary_color: '#e72' From 51a0dcdb7c8bc649543b3b282dd13251f7892dc4 Mon Sep 17 00:00:00 2001 From: Helium Date: Wed, 11 Aug 2021 21:41:04 +0200 Subject: [PATCH 07/12] adjust dark theme --- CHANGES-mnalis.md | 3 +-- .../map_theme/jawg/streetcomplete-dark-style.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGES-mnalis.md b/CHANGES-mnalis.md index 4fadf85b0e..71013723b4 100644 --- a/CHANGES-mnalis.md +++ b/CHANGES-mnalis.md @@ -16,6 +16,7 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * add hide button (commit 6ca8a6d38ee0e408dc38cd52cdd213c333c251c6) * also make buildings on light theme more transparent (commit edd770106132915823829b5da4aacf1a434ef651) * make buildings more transparent (dark mode only) (commit 367b904990f1824eb2c114ec48ef44f1393afd1b) +* adjust dark theme (commit 9dbf3908180edcb30f1b0464a62f5c134a47c0b0) ## TODO * update APK build code, and put date/version/last commit in filename. @@ -35,7 +36,6 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * add poi "quests" and adjust quest dot offset (commit 2ea50a4433d9db5b5101a739efd4c9e4282959fc) -- add 'FIXME' quest only, but not offsets etc * add level quests for shopping malls (commit b2ae6032809b25f206daaf1deb79fe98693e8198) * update contact quests (commit 2dddd0b2d49ffa6c5dc2d67bd629cfcbce8537c5) -- FIXME: it also removes key_cutter, hostel etc, why? - * adjust dark theme (commit 3251e335c7839520a2eb95b120d6ad88d333f19c) * add per-quest settings for some quests (for element selection) (commit a60a389024f7db64091b25c950e511180c3a5ff9) * add maxspeed tag selection to per-quest-settings (commit e256a94617d6465db3a6cef92b89ef83e6665d35) * x 148a60f1b remove ShowFixme() and other Show() which are in other Helium314 patches we didn't import @@ -65,7 +65,6 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * add phone and website quests (commit 8e65bacde415860fd3e29a402d3cd9056a4e187f) * show pois and adjust quest dot and pin offsets (commit 8cf33fab948a3c3e1615a61b3b1638659e6cae71) * re-ask surface for badly tagged tracks (by matkoniecz) (commit 94d444069bb4918b6b9a9248470ecd9825b3d14e) - * adjust dark theme (commit 9dbf3908180edcb30f1b0464a62f5c134a47c0b0) * rename package and app (in changesets) (commit 8694cf185b7dff21308ec712f04928d786934075) * allow house address quest even if no building type ? diff --git a/app/src/main/assets/map_theme/jawg/streetcomplete-dark-style.yaml b/app/src/main/assets/map_theme/jawg/streetcomplete-dark-style.yaml index fcfc72a491..22315a55f8 100644 --- a/app/src/main/assets/map_theme/jawg/streetcomplete-dark-style.yaml +++ b/app/src/main/assets/map_theme/jawg/streetcomplete-dark-style.yaml @@ -9,7 +9,7 @@ global: text_fill_color: '#ccf' text_water_color: '#ccf' - railway_color: '#903' + railway_color: '#603' road_color: '#559' road_outline_color: '#99f' highway_color: '#033' @@ -19,10 +19,10 @@ global: square_color: global.road_color earth_color: '#2e2e48' - water_color: '#002' - green_color: '#363054' - forest_color: '#403962' - town_color: '#3d364e' + water_color: '#006' + green_color: '#455944' + forest_color: '#375436' + town_color: '#211d2b' building_color: [0.16, 0.36, 0.36, 0.35] building_outline_color: [0.26, 0.6, 0.6, 0.7] From 7d4d08b1a0592d31a70bbb05d79c1beac661cc86 Mon Sep 17 00:00:00 2001 From: Helium Date: Wed, 11 Aug 2021 22:10:46 +0200 Subject: [PATCH 08/12] add phone and website quests --- CHANGES-mnalis.md | 6 +- .../streetcomplete/quests/QuestModule.kt | 4 + .../quests/contact/AddContactPhone.kt | 75 ++++++++++++++++++ .../quests/contact/AddContactPhoneForm.kt | 35 +++++++++ .../quests/contact/AddContactWebsite.kt | 78 +++++++++++++++++++ .../quests/contact/AddContactWebsiteForm.kt | 35 +++++++++ app/src/main/res/layout/quest_contact.xml | 10 +++ app/src/main/res/values/strings.xml | 2 + 8 files changed, 242 insertions(+), 3 deletions(-) create mode 100644 app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhone.kt create mode 100644 app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhoneForm.kt create mode 100644 app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsite.kt create mode 100644 app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsiteForm.kt create mode 100644 app/src/main/res/layout/quest_contact.xml diff --git a/CHANGES-mnalis.md b/CHANGES-mnalis.md index 71013723b4..d3b9ef1fa7 100644 --- a/CHANGES-mnalis.md +++ b/CHANGES-mnalis.md @@ -17,6 +17,7 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * also make buildings on light theme more transparent (commit edd770106132915823829b5da4aacf1a434ef651) * make buildings more transparent (dark mode only) (commit 367b904990f1824eb2c114ec48ef44f1393afd1b) * adjust dark theme (commit 9dbf3908180edcb30f1b0464a62f5c134a47c0b0) +* add phone and website quests (commit 8e65bacde415860fd3e29a402d3cd9056a4e187f) ## TODO * update APK build code, and put date/version/last commit in filename. @@ -42,7 +43,6 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * replace helium314 reverse quest order button with quick preset change button? * disable 3D (commit f379fc78376212362d47f9efa3b6b7692031bfcf, 08a791676728d683849938f8a7c03a2bbee92131, 825afd551347cb1add9446d72c5df896e98893e8) - * update icons (commit bce1e5569137bfdef5468d8f861c6363c70aec5b) * update level filter (commit c19129b8b86f810bfdfca3c77c6edbdbc4c98bd1) * add raised crossing answer to show poi quest, remove unused imports (commit cdf7fa5aaf05ac289cb356e314bbf5ffc5f6517f, 5c9a07257d30184475d92df2908180ff0e159d9c) * fix build (commit 1bdad058165b769020b611b5449ccc96ad027f21, a2cb3c68e2927fcaf90f4ab1515428ef58547c15) @@ -62,11 +62,11 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * add "private" other answer to track, lit and surface quests (commit bf7a8771c2480f10813daef25f06f92a4c5bc649) * add "demolished" other answer for building type (commit 844e027754c5d48a1c9d214318813dc7f88f1015) * add quests asking for level inside mall or retail buildings (commit 1dd8d52e87a25f8608d6479eedba6675fc23beb3) - * add phone and website quests (commit 8e65bacde415860fd3e29a402d3cd9056a4e187f) * show pois and adjust quest dot and pin offsets (commit 8cf33fab948a3c3e1615a61b3b1638659e6cae71) - * re-ask surface for badly tagged tracks (by matkoniecz) (commit 94d444069bb4918b6b9a9248470ecd9825b3d14e) * rename package and app (in changesets) (commit 8694cf185b7dff21308ec712f04928d786934075) + * re-ask surface for badly tagged tracks (by matkoniecz) (commit 94d444069bb4918b6b9a9248470ecd9825b3d14e) + * allow house address quest even if no building type ? See [issue #2464](https://github.com/streetcomplete/StreetComplete/issues/2464) * add language selector (or force language to HR in this fork if it is much simpler) diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/QuestModule.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/QuestModule.kt index 78de7bab64..159091e340 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/QuestModule.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/QuestModule.kt @@ -27,6 +27,7 @@ import de.westnordost.streetcomplete.quests.bus_stop_shelter.AddBusStopShelter import de.westnordost.streetcomplete.quests.car_wash_type.AddCarWashType import de.westnordost.streetcomplete.quests.construction.MarkCompletedBuildingConstruction import de.westnordost.streetcomplete.quests.construction.MarkCompletedHighwayConstruction +import de.westnordost.streetcomplete.quests.contact.* import de.westnordost.streetcomplete.quests.crossing_type.AddCrossingType import de.westnordost.streetcomplete.quests.crossing_island.AddCrossingIsland import de.westnordost.streetcomplete.quests.defibrillator.AddIsDefibrillatorIndoor @@ -366,5 +367,8 @@ import javax.inject.Singleton AddRoofShape(countryInfos), AddStepCount(), // can only be gathered when walking along this way, also needs the most effort and least useful + + AddContactPhone(), + AddContactWebsite(), )) } diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhone.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhone.kt new file mode 100644 index 0000000000..3334cff53b --- /dev/null +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhone.kt @@ -0,0 +1,75 @@ +package de.westnordost.streetcomplete.quests.contact + +import de.westnordost.streetcomplete.R +import de.westnordost.streetcomplete.data.osm.edits.update_tags.StringMapChangesBuilder +import de.westnordost.streetcomplete.data.osm.osmquests.OsmFilterQuestType + +class AddContactPhone : OsmFilterQuestType() { + + override val elementFilter = """ + nodes, ways, relations with + ( + tourism = information and information = office + or """.trimIndent() + + + // The common list is shared by the name quest, the opening hours quest and the wheelchair quest. + // So when adding other tags to the common list keep in mind that they need to be appropriate for all those quests. + // Independent tags can by added in the "wheelchair only" tab. + + mapOf( + "amenity" to arrayOf( + // common + "restaurant", "cafe", "nightclub","internet_cafe", + "cinema", "townhall", "courthouse", "embassy", "community_centre", "youth_centre", "library", + "dentist", "doctors", "clinic", "veterinary","animal_shelter", + + // name & wheelchair only + "arts_centre","ferry_terminal" + ), + "tourism" to arrayOf( + // common + "zoo", "aquarium", "gallery", "museum", + ), + "shop" to arrayOf( + // common + "beauty", "massage", "hairdresser","boutique","wool","tattoo","electrical","florist","glaziery", + "computer","electronics","hifi","bicycle","outdoor","sports","clothing","art","craft","model", + "musical_instrument","camera","books","travel_agency","cheese","chocolate","coffee","health_food" + ), + "leisure" to arrayOf( + // common + "fitness_centre", "bowling_alley","sports_centre" + ), + "office" to arrayOf( + // common + "insurance", "government", "travel_agent", "tax_advisor", "religion", "employment_agency", + + // name & wheelchair + "lawyer", "estate_agent", "therapist" + ), + "craft" to arrayOf( + // common + "carpenter", "shoemaker", "tailor", "photographer", "dressmaker", + "electronics_repair", "stonemason","winery" + ) + ).map { it.key + " ~ " + it.value.joinToString("|") }.joinToString("\n or ") + + "\n) and !phone and !contact:phone and !contact:mobile and !brand and name" + + override val commitMessage = "Add phone number" + override val wikiLink = "Key:phone" + override val icon = R.drawable.ic_quest_blind_traffic_lights_sound + + override fun getTitle(tags: Map) = R.string.quest_contact_phone + + override fun getTitleArgs(tags: Map, featureName: Lazy): Array { + val name = tags["name"] + return if (name != null) arrayOf(name) else arrayOf() + } + + override fun createForm() = AddContactPhoneForm() + + override fun applyAnswerTo(answer: String, changes: StringMapChangesBuilder) { + changes.add("phone", answer) + } + +} diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhoneForm.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhoneForm.kt new file mode 100644 index 0000000000..4195cee13f --- /dev/null +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhoneForm.kt @@ -0,0 +1,35 @@ +package de.westnordost.streetcomplete.quests.contact + +import android.os.Bundle +import android.text.InputType +import android.view.View + +import de.westnordost.streetcomplete.R +import de.westnordost.streetcomplete.quests.AbstractQuestFormAnswerFragment +import de.westnordost.streetcomplete.util.TextChangedWatcher +import kotlinx.android.synthetic.main.quest_contact.* + + +class AddContactPhoneForm : AbstractQuestFormAnswerFragment() { + + override val contentLayoutResId = R.layout.quest_contact + + private val contact get() = nameInput?.text?.toString().orEmpty().trim() + + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) + nameInput.inputType = InputType.TYPE_CLASS_PHONE + + nameInput.setText(PREFILL) + nameInput.addTextChangedListener(TextChangedWatcher { checkIsFormComplete() }) + } + + override fun onClickOk() { + applyAnswer(contact) + } + + + override fun isFormComplete() = contact.isNotEmpty() && contact != PREFILL +} + +private const val PREFILL = "+" diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsite.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsite.kt new file mode 100644 index 0000000000..a14a75cdb0 --- /dev/null +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsite.kt @@ -0,0 +1,78 @@ +package de.westnordost.streetcomplete.quests.contact + +import de.westnordost.streetcomplete.R +import de.westnordost.streetcomplete.data.osm.edits.update_tags.StringMapChangesBuilder +import de.westnordost.streetcomplete.data.osm.osmquests.OsmFilterQuestType + +class AddContactWebsite : OsmFilterQuestType() { + + override val elementFilter = """ + nodes, ways, relations with + ( + tourism = information and information = office + or """.trimIndent() + + + // The common list is shared by the name quest, the opening hours quest and the wheelchair quest. + // So when adding other tags to the common list keep in mind that they need to be appropriate for all those quests. + // Independent tags can by added in the "wheelchair only" tab. + + mapOf( + "amenity" to arrayOf( + // common + "restaurant", "cafe", "nightclub", // eat & drink + "cinema", "townhall", "courthouse", "embassy", "community_centre", "youth_centre", "library", // civic + "internet_cafe", // commercial + "dentist", "doctors", "clinic", "veterinary", // health + "animal_shelter", + + // name & wheelchair only + "arts_centre","ferry_terminal" + ), + "tourism" to arrayOf( + // common + "zoo", "aquarium", "gallery", "museum", + ), + "shop" to arrayOf( + // common + "beauty", "massage", "hairdresser","boutique","wool","tattoo","electrical","florist","glaziery", + "computer","electronics","hifi","mobile_phone","bicycle","outdoor","sports","clothing","art","craft","model", + "musical_instrument","camera","books","travel_agency","cheese","chocolate","coffee","health_food" + + ), + "leisure" to arrayOf( + // common + "fitness_centre", "bowling_alley","sports_centre" + ), + "office" to arrayOf( + // common + "insurance", "government", "travel_agent", "tax_advisor", "religion", "employment_agency", + + // name & wheelchair + "lawyer", "estate_agent", "therapist" + ), + "craft" to arrayOf( + // common + "carpenter", "shoemaker", "tailor", "photographer", "dressmaker", + "electronics_repair", "stonemason","winery" + ) + ).map { it.key + " ~ " + it.value.joinToString("|") }.joinToString("\n or ") + + "\n) and !website and !contact:website and !contact:facebook and !contact:instagram and !brand and name" + + override val commitMessage = "Add website" + override val wikiLink = "Key:website" + override val icon = R.drawable.ic_quest_wifi + + override fun getTitle(tags: Map) = R.string.quest_contact_website + + override fun getTitleArgs(tags: Map, featureName: Lazy): Array { + val name = tags["name"] + return if (name != null) arrayOf(name) else arrayOf() + } + + override fun createForm() = AddContactWebsiteForm() + + override fun applyAnswerTo(answer: String, changes: StringMapChangesBuilder) { + changes.add("website", answer) + } + +} diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsiteForm.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsiteForm.kt new file mode 100644 index 0000000000..845041876a --- /dev/null +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsiteForm.kt @@ -0,0 +1,35 @@ +package de.westnordost.streetcomplete.quests.contact + +import android.os.Bundle +import android.text.InputType +import android.view.View + +import de.westnordost.streetcomplete.R +import de.westnordost.streetcomplete.quests.AbstractQuestFormAnswerFragment +import de.westnordost.streetcomplete.util.TextChangedWatcher +import kotlinx.android.synthetic.main.quest_contact.* + + +class AddContactWebsiteForm : AbstractQuestFormAnswerFragment() { + + override val contentLayoutResId = R.layout.quest_contact + + private val contact get() = nameInput?.text?.toString().orEmpty().trim() + + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) + nameInput.inputType = InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_URI + + nameInput.setText(PREFILL) + nameInput.addTextChangedListener(TextChangedWatcher { checkIsFormComplete() }) + } + + override fun onClickOk() { + applyAnswer(contact) + } + + + override fun isFormComplete() = contact.isNotEmpty() && contact != PREFILL +} + +private const val PREFILL = "http://" diff --git a/app/src/main/res/layout/quest_contact.xml b/app/src/main/res/layout/quest_contact.xml new file mode 100644 index 0000000000..0bd955aa83 --- /dev/null +++ b/app/src/main/res/layout/quest_contact.xml @@ -0,0 +1,10 @@ + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 61fdd7a57f..eaa9db40b7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -544,6 +544,8 @@ Otherwise, you can download another keyboard in the app store. Popular keyboards What religion is practiced at this place? Christianity Islam + "What is the phone number of %s?" + "What is the website of %s?" Hinduism Buddhism Shinto From fdfdfef240670bcd50848ff52519d948f38f862b Mon Sep 17 00:00:00 2001 From: Helium Date: Tue, 17 Aug 2021 20:30:19 +0200 Subject: [PATCH 09/12] add "zebra" answer for crossing type quest --- CHANGES-mnalis.md | 2 +- .../streetcomplete/quests/crossing_type/AddCrossingTypeForm.kt | 1 + .../streetcomplete/quests/crossing_type/CrossingType.kt | 1 + app/src/main/res/values/strings.xml | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES-mnalis.md b/CHANGES-mnalis.md index d3b9ef1fa7..9a669ced1b 100644 --- a/CHANGES-mnalis.md +++ b/CHANGES-mnalis.md @@ -18,6 +18,7 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * make buildings more transparent (dark mode only) (commit 367b904990f1824eb2c114ec48ef44f1393afd1b) * adjust dark theme (commit 9dbf3908180edcb30f1b0464a62f5c134a47c0b0) * add phone and website quests (commit 8e65bacde415860fd3e29a402d3cd9056a4e187f) +* add "zebra" answer for crossing type quest (commit 68f49d281aed27d3b526fd35d5552a9095f43036) ## TODO * update APK build code, and put date/version/last commit in filename. @@ -53,7 +54,6 @@ From `upstream-helium314-new` (and `upstream-helium314-old`?) branches: * make day/night filter optional, add setting (commit 965a9427c4e0cf344cfd0e809fb9f43639da1bee) * fix level quest (131831b34f8f8d34477b61ce4031e910c9d5e8ab) * update level quest (requires at least one poi with tagged level) (commit 7458bfe43e46d6dd89a28b09bb7bf2e361256f85) - * add "zebra" answer for crossing type quest (commit 68f49d281aed27d3b526fd35d5552a9095f43036) * extend map tile cache from 12 hours to 8 days (commit 365b097d3349423d2777cec7238faa115155c14a) * add level filter (commit 4dbc75e59863e3d3e96015bf8eed736459483387) * small update to place level quest (commit 21d85b8395494f8c4751c9bdd9eb036b0f3a3881) diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/crossing_type/AddCrossingTypeForm.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/crossing_type/AddCrossingTypeForm.kt index 4d9bf1c1bd..4f0b3db695 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/crossing_type/AddCrossingTypeForm.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/crossing_type/AddCrossingTypeForm.kt @@ -10,6 +10,7 @@ class AddCrossingTypeForm : AImageListQuestAnswerFragmentControlled by traffic lights Marked Without road markings + Zebra crossing Undo Undo the following edit? Synced From 71000cdb18f6ed295d73ff9120ee81a9c4743f4d Mon Sep 17 00:00:00 2001 From: Matija Nalis Date: Mon, 1 Nov 2021 02:47:29 +0100 Subject: [PATCH 10/12] add Achievement to try to get contact quests to compile --- .../streetcomplete/quests/contact/AddContactPhone.kt | 3 +++ .../streetcomplete/quests/contact/AddContactWebsite.kt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhone.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhone.kt index 3334cff53b..df30f4f212 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhone.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhone.kt @@ -3,6 +3,7 @@ package de.westnordost.streetcomplete.quests.contact import de.westnordost.streetcomplete.R import de.westnordost.streetcomplete.data.osm.edits.update_tags.StringMapChangesBuilder import de.westnordost.streetcomplete.data.osm.osmquests.OsmFilterQuestType +import de.westnordost.streetcomplete.data.user.achievements.QuestTypeAchievement.CITIZEN class AddContactPhone : OsmFilterQuestType() { @@ -59,6 +60,8 @@ class AddContactPhone : OsmFilterQuestType() { override val wikiLink = "Key:phone" override val icon = R.drawable.ic_quest_blind_traffic_lights_sound + override val questTypeAchievements = listOf(CITIZEN) + override fun getTitle(tags: Map) = R.string.quest_contact_phone override fun getTitleArgs(tags: Map, featureName: Lazy): Array { diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsite.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsite.kt index a14a75cdb0..37bfce84a5 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsite.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsite.kt @@ -3,6 +3,7 @@ package de.westnordost.streetcomplete.quests.contact import de.westnordost.streetcomplete.R import de.westnordost.streetcomplete.data.osm.edits.update_tags.StringMapChangesBuilder import de.westnordost.streetcomplete.data.osm.osmquests.OsmFilterQuestType +import de.westnordost.streetcomplete.data.user.achievements.QuestTypeAchievement.CITIZEN class AddContactWebsite : OsmFilterQuestType() { @@ -62,6 +63,8 @@ class AddContactWebsite : OsmFilterQuestType() { override val wikiLink = "Key:website" override val icon = R.drawable.ic_quest_wifi + override val questTypeAchievements = listOf(CITIZEN) + override fun getTitle(tags: Map) = R.string.quest_contact_website override fun getTitleArgs(tags: Map, featureName: Lazy): Array { From ecfd199fd2345ad70f295b1a152d862a447fed22 Mon Sep 17 00:00:00 2001 From: Matija Nalis Date: Mon, 1 Nov 2021 03:07:31 +0100 Subject: [PATCH 11/12] add bindings to try to get contact quests to compile --- .../quests/contact/AddContactPhoneForm.kt | 10 ++++++---- .../quests/contact/AddContactWebsiteForm.kt | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhoneForm.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhoneForm.kt index 4195cee13f..55eeb658ea 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhoneForm.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhoneForm.kt @@ -5,6 +5,7 @@ import android.text.InputType import android.view.View import de.westnordost.streetcomplete.R +import de.westnordost.streetcomplete.databinding.QuestContactPhoneBinding import de.westnordost.streetcomplete.quests.AbstractQuestFormAnswerFragment import de.westnordost.streetcomplete.util.TextChangedWatcher import kotlinx.android.synthetic.main.quest_contact.* @@ -13,15 +14,16 @@ import kotlinx.android.synthetic.main.quest_contact.* class AddContactPhoneForm : AbstractQuestFormAnswerFragment() { override val contentLayoutResId = R.layout.quest_contact + private val binding by contentViewBinding(QuestContactPhoneBinding::bind) - private val contact get() = nameInput?.text?.toString().orEmpty().trim() + private val contact get() = binding.nameInput?.text?.toString().orEmpty().trim() override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - nameInput.inputType = InputType.TYPE_CLASS_PHONE + binding.nameInput.inputType = InputType.TYPE_CLASS_PHONE - nameInput.setText(PREFILL) - nameInput.addTextChangedListener(TextChangedWatcher { checkIsFormComplete() }) + binding.nameInput.setText(PREFILL) + binding.nameInput.addTextChangedListener(TextChangedWatcher { checkIsFormComplete() }) } override fun onClickOk() { diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsiteForm.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsiteForm.kt index 845041876a..b986dcfa53 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsiteForm.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsiteForm.kt @@ -5,6 +5,7 @@ import android.text.InputType import android.view.View import de.westnordost.streetcomplete.R +import de.westnordost.streetcomplete.databinding.QuestContactWebsiteBinding import de.westnordost.streetcomplete.quests.AbstractQuestFormAnswerFragment import de.westnordost.streetcomplete.util.TextChangedWatcher import kotlinx.android.synthetic.main.quest_contact.* @@ -13,15 +14,16 @@ import kotlinx.android.synthetic.main.quest_contact.* class AddContactWebsiteForm : AbstractQuestFormAnswerFragment() { override val contentLayoutResId = R.layout.quest_contact + private val binding by contentViewBinding(QuestContactWebsiteBinding::bind) - private val contact get() = nameInput?.text?.toString().orEmpty().trim() + private val contact get() = binding.nameInput?.text?.toString().orEmpty().trim() override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - nameInput.inputType = InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_URI + binding.nameInput.inputType = InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_URI - nameInput.setText(PREFILL) - nameInput.addTextChangedListener(TextChangedWatcher { checkIsFormComplete() }) + binding.nameInput.setText(PREFILL) + binding.nameInput.addTextChangedListener(TextChangedWatcher { checkIsFormComplete() }) } override fun onClickOk() { From 3da87d9d6d9a0efacda450b883865e4c08576191 Mon Sep 17 00:00:00 2001 From: Matija Nalis Date: Mon, 1 Nov 2021 03:26:24 +0100 Subject: [PATCH 12/12] try more bindings to try to get contact quests to compile --- .../streetcomplete/quests/contact/AddContactPhoneForm.kt | 5 ++--- .../streetcomplete/quests/contact/AddContactWebsiteForm.kt | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhoneForm.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhoneForm.kt index 55eeb658ea..03fa75e1be 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhoneForm.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactPhoneForm.kt @@ -5,16 +5,15 @@ import android.text.InputType import android.view.View import de.westnordost.streetcomplete.R -import de.westnordost.streetcomplete.databinding.QuestContactPhoneBinding import de.westnordost.streetcomplete.quests.AbstractQuestFormAnswerFragment import de.westnordost.streetcomplete.util.TextChangedWatcher -import kotlinx.android.synthetic.main.quest_contact.* +import de.westnordost.streetcomplete.databinding.QuestContactBinding class AddContactPhoneForm : AbstractQuestFormAnswerFragment() { override val contentLayoutResId = R.layout.quest_contact - private val binding by contentViewBinding(QuestContactPhoneBinding::bind) + private val binding by contentViewBinding(QuestContactBinding::bind) private val contact get() = binding.nameInput?.text?.toString().orEmpty().trim() diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsiteForm.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsiteForm.kt index b986dcfa53..3af9ba4d61 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsiteForm.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/contact/AddContactWebsiteForm.kt @@ -5,16 +5,15 @@ import android.text.InputType import android.view.View import de.westnordost.streetcomplete.R -import de.westnordost.streetcomplete.databinding.QuestContactWebsiteBinding import de.westnordost.streetcomplete.quests.AbstractQuestFormAnswerFragment import de.westnordost.streetcomplete.util.TextChangedWatcher -import kotlinx.android.synthetic.main.quest_contact.* +import de.westnordost.streetcomplete.databinding.QuestContactBinding class AddContactWebsiteForm : AbstractQuestFormAnswerFragment() { override val contentLayoutResId = R.layout.quest_contact - private val binding by contentViewBinding(QuestContactWebsiteBinding::bind) + private val binding by contentViewBinding(QuestContactBinding::bind) private val contact get() = binding.nameInput?.text?.toString().orEmpty().trim()