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

Commit 21d89bba authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Work around not working "ime set <imeId>"" into main

parents bd17b255 a23fb054
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -6758,6 +6758,17 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
                        out.print(imeId);
                        out.print(" selected for user #");
                        out.println(userId);

                        // Workaround for b/354782333.
                        final var settingsValue = SecureSettingsWrapper.getString(
                                Settings.Secure.DEFAULT_INPUT_METHOD, "", userId);
                        if (!TextUtils.equals(settingsValue, imeId)) {
                            Slog.w(TAG, "DEFAULT_INPUT_METHOD=" + settingsValue
                                    + " is not updated. Fixing it up to " + imeId
                                    + " See b/354782333.");
                            SecureSettingsWrapper.putString(
                                    Settings.Secure.DEFAULT_INPUT_METHOD, imeId, userId);
                        }
                    }
                    hasFailed |= failedToSelectUnknownIme;
                }