Stop using a deprecated constructor of InputMethodSettings.

am: 143a686

* commit '143a6869476a4be5962d4bba3b222d078f46b9a0':
  Stop using a deprecated constructor of InputMethodSettings.
This commit is contained in:
Yohei Yukawa
2016-03-17 18:19:23 +00:00
committed by android-build-merger
2 changed files with 3 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ class InputMethodSettingValuesWrapper {
// Ensure singleton // Ensure singleton
private InputMethodSettingValuesWrapper(Context context) { private InputMethodSettingValuesWrapper(Context context) {
mSettings = new InputMethodSettings(context.getResources(), context.getContentResolver(), mSettings = new InputMethodSettings(context.getResources(), context.getContentResolver(),
mMethodMap, mMethodList, getDefaultCurrentUserId()); mMethodMap, mMethodList, getDefaultCurrentUserId(), false /* copyOnWrite */);
mImm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); mImm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
refreshAllInputMethodAndSubtypes(); refreshAllInputMethodAndSubtypes();
} }

View File

@@ -79,7 +79,8 @@ public final class PhysicalKeyboardFragment extends SettingsPreferenceFragment
getContentResolver(), getContentResolver(),
new HashMap<String, InputMethodInfo>(), new HashMap<String, InputMethodInfo>(),
new ArrayList<InputMethodInfo>(), new ArrayList<InputMethodInfo>(),
USER_SYSTEM); USER_SYSTEM,
false /* copyOnWrite */);
mKeyboardAssistanceCategory = Preconditions.checkNotNull( mKeyboardAssistanceCategory = Preconditions.checkNotNull(
(PreferenceCategory) findPreference(KEYBOARD_ASSISTANCE_CATEGORY)); (PreferenceCategory) findPreference(KEYBOARD_ASSISTANCE_CATEGORY));
mShowVirtualKeyboardSwitch = Preconditions.checkNotNull( mShowVirtualKeyboardSwitch = Preconditions.checkNotNull(