diff options
author | Narayan Kamath <narayan@google.com> | 2014-07-01 10:56:20 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-07-01 11:12:24 +0100 |
commit | b27c137087ee926746b43b1abd08fb360ede671b (patch) | |
tree | d4ebcfe0db17e1588d8b18bed0797272a44eb989 /samples | |
parent | 7165bd6d7496159b426f072bdf13adfffc917a24 (diff) | |
download | frameworks_base-b27c137087ee926746b43b1abd08fb360ede671b.zip frameworks_base-b27c137087ee926746b43b1abd08fb360ede671b.tar.gz frameworks_base-b27c137087ee926746b43b1abd08fb360ede671b.tar.bz2 |
Fix broken assumptions in LocalePicker.
This code assumed that the locale is always 5 chars in
length and was of the form xx-YY. This is not necessarily
true. The language can be 3 letters in length and the locale
might have a script and variant.
Also cleans up several nasty pieces of code and eliminates
unnecessary array copies and improves readability by using
idiomatic java.
bug: 15873165
bug: 10090157
Change-Id: Iab1cfd7b78e5772b1245654f2153caf63a96033d
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions