Commit 641dfad
fix(map): chip-sized labels for long layer names + shorten search placeholder (R7 QC)
Two cosmetic findings from emulator QC of HEAD f915b35:
(1) Active-layer chip on the map control bar truncated long titles. 'Location polyline' rendered as 'Location polyli...' at typical 360dp widths; 'Wi-Fi count heatmap' and 'Vehicle speed compliance' have the same problem. Add optional LayerDescriptor.chipLabelRes so we can ship a short label for the chip while keeping the full title in the layer menu / legend. Cover the four longest titles: Polyline, Locations, Wi-Fi count, Speeding. MapChromeHost.activeLayerLabel prefers chipLabelRes when set, falls back to titleRes.
(2) Map search placeholder 'Search lat, lng (e.g. 50.075, 14.437)' truncated to 'Search lat, lng (e.g. 50.075, 14.4...' losing the example coordinate. Shorten to 'Lat, Lng e.g. 50.075, 14.437' (28 chars) which fits the field at 754dp with 200dp to spare. The full coordinate-format reference still lives in map_search_invalid_format.
Verified on emulator: chip text 'Polyline' (was 'Location polyli...'); placeholder 'Lat, Lng e.g. 50.075, 14.437' (was '...e.g. 50.075, 14.4...'). All :map unit tests green; LayerDescriptorTest updated to use named params for the new optional field.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f915b35 commit 641dfad
5 files changed
Lines changed: 29 additions & 4 deletions
File tree
- map/src
- main
- java/com/adsamcik/tracker/map
- layers/registry
- ui/controls
- res/values
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| 196 | + | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| |||
261 | 263 | | |
262 | 264 | | |
263 | 265 | | |
| 266 | + | |
264 | 267 | | |
265 | 268 | | |
266 | 269 | | |
| |||
382 | 385 | | |
383 | 386 | | |
384 | 387 | | |
| 388 | + | |
385 | 389 | | |
386 | 390 | | |
387 | 391 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
157 | 162 | | |
158 | 163 | | |
159 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
| |||
112 | 120 | | |
113 | 121 | | |
114 | 122 | | |
115 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
116 | 126 | | |
117 | 127 | | |
118 | 128 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
| 235 | + | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
0 commit comments