Commit 896ea3a
Migrate a wizard session saved before the safe-area unit changed
Two more review findings.
The persisted wizard state survives a reload, and SkinModel.load() read
safeTop/safeBottom back verbatim. Those numbers were entered as preview
viewbox units and are now read as points or dp, so a session left by the
older build silently regenerates a different skin: a hand-tuned 40 on a
1080-wide 400ppi Android device meant 135px then and would mean 100px now.
The persisted model carries a schema version, and a session below the
current one takes its insets fresh from the device catalog. There is
nothing to convert back to -- a value tuned by eye was tuned against the
scaling this branch fixes -- and an untouched session got the same numbers
from the catalog anyway. A session with no device selected goes back to the
device step, where resetForDevice refills both values on the way through.
The migration is written back once rather than repeated on every reload.
The documented property example omitted the `cutouts` key the wizard now
writes. A skin rebuilt from that example would paint the opaque island and
give JavaSEPort.parseCutouts() nothing, leaving pointer events free to
reach the content underneath -- exactly the bug the key exists to close.
The example carries the real value for its device (377,53,452,132, checked
against the generator), and the guide's property list and cutouts section
mention it.
Also drops this branch's own fix for the signup-funnel test: master fixed
it in #5628 with an attribute parser rather than a looser regex, which is
the better of the two, so the rebase takes master's version.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 7345c65 commit 896ea3a
4 files changed
Lines changed: 67 additions & 2 deletions
File tree
- docs
- demos/common/src/main/snippets/developer-guide
- developer-guide
- scripts/skindesigner/common/src/main/java/com/codename1/tools/skindesigner
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| |||
170 | 175 | | |
171 | 176 | | |
172 | 177 | | |
173 | | - | |
| 178 | + | |
174 | 179 | | |
175 | 180 | | |
176 | 181 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
177 | 182 | | |
178 | 183 | | |
179 | 184 | | |
| |||
Lines changed: 49 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
78 | 93 | | |
79 | 94 | | |
80 | 95 | | |
| |||
105 | 120 | | |
106 | 121 | | |
107 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
108 | 152 | | |
| 153 | + | |
109 | 154 | | |
110 | 155 | | |
111 | 156 | | |
| |||
127 | 172 | | |
128 | 173 | | |
129 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
130 | 178 | | |
131 | 179 | | |
132 | 180 | | |
| |||
150 | 198 | | |
151 | 199 | | |
152 | 200 | | |
153 | | - | |
| 201 | + | |
154 | 202 | | |
155 | 203 | | |
156 | 204 | | |
| |||
0 commit comments