commit | b27c137087ee926746b43b1abd08fb360ede671b | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Tue Jul 01 10:56:20 2014 +0100 |
committer | Narayan Kamath <narayan@google.com> | Tue Jul 01 11:12:24 2014 +0100 |
tree | d4ebcfe0db17e1588d8b18bed0797272a44eb989 | |
parent | 7165bd6d7496159b426f072bdf13adfffc917a24 [diff] |
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