OSDN Git Service

Implement locale matching in LocalesList.
authorRoozbeh Pournader <roozbeh@google.com>
Fri, 20 Nov 2015 06:32:36 +0000 (22:32 -0800)
committerRoozbeh Pournader <roozbeh@google.com>
Tue, 8 Dec 2015 23:03:39 +0000 (15:03 -0800)
commit17b2b2d45854b56de7aa6d1581526e45991274d4
tree0877592db2fbdae59a2a50dd0899e57624b1eb30
parent103d61b9f79de4d7b907227a7925e809e3e183c2
Implement locale matching in LocalesList.

The algorithm tries to find the first locale in the locale list
(usually from the user preference) that somewhat matches one of the
locales supported (usually from the list of locales supported by the
system or an app).

Locales match if both their language and their likely script is the
same. Otherwise they don't.

Bug: 25800576
Change-Id: I4fbc3f44ab16d41efebbf941e94a0bb30d598f82
api/current.txt
api/system-current.txt
core/java/android/util/LocaleList.java
services/core/java/com/android/server/am/ActivityManagerService.java