Closed Bug 959175 Opened 10 years ago Closed 10 years ago

Force redrawing on uppercase-switching for Layouts with secondLayout set to true. Regression after 875963

Categories

(Firefox OS Graveyard :: Gaia::Keyboard, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v1.3T fixed)

RESOLVED FIXED
Tracking Status
b2g-v1.3T --- fixed

People

(Reporter: nefzaoui, Assigned: janjongboom)

References

Details

Attachments

(1 file)

It seems like since after bug 875963, Layouts with secondLayout set to true are not being able to user the uppercase layout as a second view for the rest of the characters.
The perfect solution would be to force redrawing uppercase whenever we have secondLayout in a locale's layout
secondLayout was suggested in bug 942651
Assignee: nobody → janjongboom
Blocks: 875963
Attached file Patch
Fairly straightforward. We shouldn't do this behavior checking in render.js, so I moved that to keyboard.js and re-introduced the uppercase flag in render again. Now all logic is in keyboard.js, and the rendering in render.js. With tests around it.
Attachment #8359830 - Flags: review?(rlu)
Attachment #8359830 - Flags: feedback?(nefzaoui.ahmed)
Comment on attachment 8359830 [details] [review]
Patch

Works like a charm :)
Attachment #8359830 - Flags: feedback?(nefzaoui.ahmed)
Comment on attachment 8359830 [details] [review]
Patch

r=me.

It was my fault that did not catch this at the beginning.

Jan, Ahmed, thanks for your help to make it right.
Attachment #8359830 - Flags: review?(rlu) → review+
Good reason why we should increase our test coverage :-)

Landed in https://github.com/mozilla-b2g/gaia/commit/e553ba3a0cdf9b4bfaa4d946279e31a0eacb2806.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: