OSDN Git Service

Optimize locale negotiation when there's only one locale
authorRoozbeh Pournader <roozbeh@google.com>
Tue, 5 Jan 2016 01:38:17 +0000 (17:38 -0800)
committerRoozbeh Pournader <roozbeh@google.com>
Tue, 5 Jan 2016 01:38:17 +0000 (17:38 -0800)
commit9ae46d8ee28cd709d81d2b48c44c47f4e4f485e8
tree167de884a841f4774a43b063636370f30b69a36b
parente824f8287b012dccc3a0376afc497bc3e4393563
Optimize locale negotiation when there's only one locale

Previously, we were finding the list of locales supported by the
system in all cases, costing us a JNI call, which was not necessary
when there was only one locale (which is expected to be quite
common).

Change-Id: I2f752a71a46b66ac2abb553a5939eddf0f761698
services/core/java/com/android/server/am/ActivityManagerService.java