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

Commit 47d0e481 authored by satok's avatar satok Committed by Android (Google) Code Review
Browse files

Merge "Dismiss the ime switch notification properly"

parents b944c218 dbf29507
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -619,10 +619,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
    }

    void updateImeWindowStatusLocked() {
        if (mStatusBar != null) {
            mStatusBar.setImeWindowStatus(mCurToken, mImeWindowVis,
                    mBackDisposition);
        }
        setImeWindowStatus(mCurToken, mImeWindowVis, mBackDisposition);
    }

    @Override
@@ -995,6 +992,8 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
                sessionState.session.finishSession();
            } catch (RemoteException e) {
                Slog.w(TAG, "Session failed to close due to remote exception", e);
                mImeWindowVis = 0;
                updateImeWindowStatusLocked();
            }
        }
    }
@@ -1121,6 +1120,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
        }
    }

    @SuppressWarnings("deprecation")
    @Override
    public void setImeWindowStatus(IBinder token, int vis, int backDisposition) {
        int uid = Binder.getCallingUid();
@@ -2591,6 +2591,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
    }

    // TODO: We should change the return type from List to List<Parcelable>
    @SuppressWarnings("rawtypes")
    @Override
    public List getShortcutInputMethodsAndSubtypes() {
        synchronized (mMethodMap) {