summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-10-20 22:03:49 +0800
committer Riddle Hsu <riddlehsu@google.com> 2022-10-20 14:41:47 +0000
commit03f0f57e6b8c96b6bde4194feadf645ee8efb9ce (patch)
tree759938b2afc4974f6475aff14294949f2d57da4a /libs/input/SpriteController.cpp
parent241b46e65708ed1d62a935bf3aace4847b875387 (diff)
Only set locale in config for updating locale
To update locale, it doesn't need a full configuration because system only applied the diff of config from non-undefined fields. IActivityManager#getConfiguration actually gets the configuration according to the pid, which is process configuration. And process configuration can be overridden by the activity running in its process. So the returned value shouldn't be used to update the system persistent configuration. Therefore it is enough to use a new Configuration instance with setting the necessary fields. This is also more efficient that saves a binder call to system. Bug: 253386061 Test: atest LocaleManagerTests Change-Id: Icdce437fcf1a3bef0562cfc4dd5ad3ba52ea08ef
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions