OSDN Git Service

Back up and restore the set of enabled IMEs
authorChristopher Tate <ctate@google.com>
Wed, 18 Mar 2015 20:06:16 +0000 (13:06 -0700)
committerChristopher Tate <ctate@google.com>
Mon, 23 Mar 2015 23:28:21 +0000 (16:28 -0700)
commit7b9a28c7f0a7b88ed1ea777edc05002d2d2b38b7
treed56e6231a7c1448e0bc61f4c62aae03a78032bfe
parentf21ef3d25af14ffaa8c1122b6a504fdf7b82b60f
Back up and restore the set of enabled IMEs

The restored set of enabled IMEs/subtypes is merged into the
current state of the system, rather than simply replacing it.
This is because we do not want to accidentally disable or
reconfigure something that the user is currently relying on.

There's a certain amount of repetitive activity here, rebuilding
the enabled-state data structures in a different format, but it's
important for maintainability that the restore code be able to
rely on the core InputMethodUtils implementation of reading/writing
the settings element.

Bug 19822542

Change-Id: If0104151b3526da6ecc669adde3119a239ecafeb
core/java/android/provider/Settings.java
core/java/com/android/internal/inputmethod/InputMethodUtils.java
packages/SettingsProvider/src/com/android/providers/settings/SettingsHelper.java
services/core/java/com/android/server/InputMethodManagerService.java