[Card unmask dialog] Use non-breakable space for number obfuscation
This is a PE fix for the CVC dialog. The current credit card number obfuscation approach uses U+2006 (SIX-PER-EM SPACE) to add a small space between bullets and between the last bullet and the first unobfuscated digit. However, that character works as a simple space and allows line breaks inside the obfuscated number on multiline dialog titles. This CL adds U+2060 (WORD-JOINER) characters between bullets and spaces in the obfuscated strings, so they can't be broken into separate lines. A previous version tried to use U+202F (NARROW NO-BREAK SPACE), but unfortunately the result looked too spacey on Android. The new character is invisible, so the only visual change is that now obfuscated numbers can't be broken. Screenshots in the bug. Bug: 873816 Change-Id: I927be848d2f63a5a76486668baebe64e7eb304f6 Reviewed-on: https://chromium-review.googlesource.com/1173338Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by:
Roger McFarlane <rogerm@chromium.org> Commit-Queue: Fabio Tirelo <ftirelo@chromium.org> Cr-Commit-Position: refs/heads/master@{#584084}
Showing
Please register or sign in to comment