Stop using a deprecated constructor of InputMethodSettings. am: 143a686
am: 9452632
* commit '9452632d23b95654cb942f391f06a32132943e27':
Stop using a deprecated constructor of InputMethodSettings.
This commit is contained in:
@@ -73,7 +73,7 @@ class InputMethodSettingValuesWrapper {
|
||||
// Ensure singleton
|
||||
private InputMethodSettingValuesWrapper(Context context) {
|
||||
mSettings = new InputMethodSettings(context.getResources(), context.getContentResolver(),
|
||||
mMethodMap, mMethodList, getDefaultCurrentUserId());
|
||||
mMethodMap, mMethodList, getDefaultCurrentUserId(), false /* copyOnWrite */);
|
||||
mImm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||
refreshAllInputMethodAndSubtypes();
|
||||
}
|
||||
|
@@ -79,7 +79,8 @@ public final class PhysicalKeyboardFragment extends SettingsPreferenceFragment
|
||||
getContentResolver(),
|
||||
new HashMap<String, InputMethodInfo>(),
|
||||
new ArrayList<InputMethodInfo>(),
|
||||
USER_SYSTEM);
|
||||
USER_SYSTEM,
|
||||
false /* copyOnWrite */);
|
||||
mKeyboardAssistanceCategory = Preconditions.checkNotNull(
|
||||
(PreferenceCategory) findPreference(KEYBOARD_ASSISTANCE_CATEGORY));
|
||||
mShowVirtualKeyboardSwitch = Preconditions.checkNotNull(
|
||||
|
Reference in New Issue
Block a user