Show ime switch icon when there is a hard keyboard

Change-Id: Ife3a8733b1a1bf43b195ecf4b8c5082b6538d0a0
diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java
index 4d40620..4d7d557 100644
--- a/services/java/com/android/server/InputMethodManagerService.java
+++ b/services/java/com/android/server/InputMethodManagerService.java
@@ -1150,9 +1150,11 @@
                         if (!mIWindowManager.inputMethodClientHasFocus(client)) {
                             if (DEBUG) Slog.w(TAG, "Ignoring hideSoftInput of uid "
                                     + uid + ": " + client);
+                            mStatusBar.setIMEButtonVisible(mCurToken, false);
                             return false;
                         }
                     } catch (RemoteException e) {
+                        mStatusBar.setIMEButtonVisible(mCurToken, false);
                         return false;
                     }
                 }