Fix a janky transition
Bug: 6026080 Change-Id: I75bd244b2b09c371805a67057d2a9c45dc12f3db
This commit is contained in:
@@ -200,6 +200,8 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
|
|||||||
new Intent(UserDictionaryList.USER_DICTIONARY_SETTINGS_INTENT_ACTION);
|
new Intent(UserDictionaryList.USER_DICTIONARY_SETTINGS_INTENT_ACTION);
|
||||||
userDictionaryPreference.setTitle(R.string.user_dict_single_settings_title);
|
userDictionaryPreference.setTitle(R.string.user_dict_single_settings_title);
|
||||||
userDictionaryPreference.setIntent(intent);
|
userDictionaryPreference.setIntent(intent);
|
||||||
|
userDictionaryPreference.setFragment(
|
||||||
|
com.android.settings.UserDictionarySettings.class.getName());
|
||||||
// If the size of localeList is 0, we don't set the locale parameter in the
|
// If the size of localeList is 0, we don't set the locale parameter in the
|
||||||
// extras. This will be interpreted by the UserDictionarySettings class as
|
// extras. This will be interpreted by the UserDictionarySettings class as
|
||||||
// meaning "the current locale".
|
// meaning "the current locale".
|
||||||
|
@@ -100,6 +100,7 @@ public class UserDictionaryList extends SettingsPreferenceFragment {
|
|||||||
newPref.getExtras().putString("locale", locale);
|
newPref.getExtras().putString("locale", locale);
|
||||||
}
|
}
|
||||||
newPref.setIntent(intent);
|
newPref.setIntent(intent);
|
||||||
|
newPref.setFragment(com.android.settings.UserDictionarySettings.class.getName());
|
||||||
return newPref;
|
return newPref;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user