Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ab22c28 authored by Jason Chiu's avatar Jason Chiu Committed by Android (Google) Code Review
Browse files

Merge "[Safer intents] Input method" into main

parents e65774a0 a18f9e50
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ public class KeyboardSettingsPreferenceController extends BasePreferenceControll
        for (HardKeyboardDeviceInfo hardKeyboardDeviceInfo : newHardKeyboards) {
            if (mCachedDevice.getAddress().equals(hardKeyboardDeviceInfo.mBluetoothAddress)) {
                Intent intent = new Intent(Settings.ACTION_HARD_KEYBOARD_SETTINGS);
                intent.setPackage(mContext.getPackageName());
                intent.putExtra(
                        Settings.EXTRA_ENTRYPOINT, SettingsEnums.CONNECTED_DEVICES_SETTINGS);
                intent.putExtra(
+1 −0
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@ public class PhysicalKeyboardPreferenceController extends AbstractPreferenceCont
            return false;
        }
        Intent intent = new Intent(Settings.ACTION_HARD_KEYBOARD_SETTINGS);
        intent.setPackage(mContext.getPackageName());
        intent.putExtra(Settings.EXTRA_ENTRYPOINT, SettingsEnums.KEYBOARD_SETTINGS);
        mContext.startActivity(intent);
        return true;
+2 −1
Original line number Diff line number Diff line
@@ -191,7 +191,8 @@ public class UserDictionaryListPreferenceController extends BasePreferenceContro
    private Preference createUserDictionaryPreference(String locale) {
        final String KEY_LOCALE = "locale";
        final Preference newPref = new Preference(mScreen.getContext());
        final Intent intent = new Intent(USER_DICTIONARY_SETTINGS_INTENT_ACTION);
        final Intent intent = new Intent(USER_DICTIONARY_SETTINGS_INTENT_ACTION)
                .setPackage(mContext.getPackageName());
        if (locale == null) {
            newPref.setTitle(Locale.getDefault().getDisplayName());
            newPref.setKey(Locale.getDefault().toString());