Fix ime swtich issue

Bug: 7250097
Change-Id: Ibe85aaf7d60e7c3a27363eece528d19a0c8ddca2
diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java
index 0f2bb20..ec58e43 100644
--- a/services/java/com/android/server/InputMethodManagerService.java
+++ b/services/java/com/android/server/InputMethodManagerService.java
@@ -745,6 +745,9 @@
                     // set the current ime to the proper one.
                     resetDefaultImeLocked(mContext);
                 }
+            } else {
+                // If the locale is changed, needs to reset the default ime
+                resetDefaultImeLocked(mContext);
             }
             updateFromSettingsLocked();
             mLastSystemLocale = newLocale;