Stop using a deprecated constructor of InputMethodSettings.
am: 143a686
* commit '143a6869476a4be5962d4bba3b222d078f46b9a0':
Stop using a deprecated constructor of InputMethodSettings.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
@@ -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(
|
||||||
|
Reference in New Issue
Block a user