Fix an NPE
It seems the user dictionary fragment does not tolerate being called by name, and needs to be called only by action. Bug: 5242122 Change-Id: I6b954db549b98d4d0076fdce8e00d336fc18b6e3
This commit is contained in:
@@ -35,7 +35,7 @@ import java.util.TreeSet;
|
||||
|
||||
public class UserDictionaryList extends SettingsPreferenceFragment {
|
||||
|
||||
private static final String USER_DICTIONARY_SETTINGS_INTENT_ACTION =
|
||||
public static final String USER_DICTIONARY_SETTINGS_INTENT_ACTION =
|
||||
"android.settings.USER_DICTIONARY_SETTINGS";
|
||||
|
||||
@Override
|
||||
@@ -101,7 +101,6 @@ public class UserDictionaryList extends SettingsPreferenceFragment {
|
||||
newPref.getExtras().putString("locale", locale);
|
||||
}
|
||||
newPref.setIntent(intent);
|
||||
newPref.setFragment(UserDictionarySettings.class.getName());
|
||||
return newPref;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user