WIP: Highlight layers button when it is activated #8821

Closed
biodranik wants to merge 1 commit from ab-android-layer-button-highlight into master
biodranik commented 2024-08-01 18:16:38 +00:00 (Migrated from github.com)

This is an attempt to workaround/hotfix the most frequently reported issue by Android users: they don't understand that Public Transport layer is activated organicmaps/organicmaps#3508

The idea is to either change the color of the layers button if any of the layers is selected or change it to the crossed button, like on iOS. On iOS the behavior is also different: clicking the crossed icon disables/resets the active layer. Behavior can be kept the same or changed, this is not as important as to stop the user reports flooding.

We made a mistake by removing the selected layers in the main menu, in that case the currently active layer was visible to users in more cases.

Any help finishing the PR would be appreciated.
CC @organicmaps/android @rtsisyk @arnaudvergnet @strump @Jean-BaptisteC

grafik

This is an attempt to workaround/hotfix the most frequently reported issue by Android users: they don't understand that Public Transport layer is activated https://git.omaps.dev/organicmaps/organicmaps/issues/3508 The idea is to either change the color of the layers button if any of the layers is selected or change it to the crossed button, like on iOS. On iOS the behavior is also different: clicking the crossed icon disables/resets the active layer. Behavior can be kept the same or changed, this is not as important as to stop the user reports flooding. We made a mistake by removing the selected layers in the main menu, in that case the currently active layer was visible to users in more cases. Any help finishing the PR would be appreciated. CC @organicmaps/android @rtsisyk @arnaudvergnet @strump @Jean-BaptisteC ![grafik](https://github.com/user-attachments/assets/3efe1dff-999f-426b-95f4-94c7b1327455)
RedAuburn reviewed 2024-08-01 21:01:51 +00:00

best to move this to a updateLayerButton function, then call it every time a layer is enabled/disabled in the popup menu (also in oncreate)

best to move this to a `updateLayerButton` function, then call it every time a layer is enabled/disabled in the popup menu (also in oncreate)
biodranik (Migrated from github.com) reviewed 2024-08-01 21:03:34 +00:00
biodranik (Migrated from github.com) commented 2024-08-01 21:03:34 +00:00

Yep, can you please help?

Yep, can you please help?
biodranik (Migrated from github.com) reviewed 2024-08-01 21:06:57 +00:00
biodranik (Migrated from github.com) commented 2024-08-01 21:06:57 +00:00

Maybe instead of changing color a number of active layers can be displayed? 1, 2 or 3? It's a temporary solution, but it should be visible to users to attract their attention.

Or maybe abbreviate layer names with words like O(outdoors), E(elevation), S(subway)? But then in different languages it will be difficult.

Maybe instead of changing color a number of active layers can be displayed? 1, 2 or 3? It's a temporary solution, but it should be visible to users to attract their attention. Or maybe abbreviate layer names with words like O(outdoors), E(elevation), S(subway)? But then in different languages it will be difficult.
This repo is archived. You cannot comment on pull requests.
No reviewers
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#8821
No description provided.