Unbind IME client when unsetting the current IME.
This follows up Ia70b870723acf647e0c27f24aff91b40d6f85543. In certain scenarios, only IMMS#mCurMethodId is cleared with null while IMMS#mCurClient is still pointing to the last application. This is problematic when IMMS#mCurClient matches SystemConfig#getFixedImeApps(), because it means that the current IME is to be fixed to null. With this CL, IMMS#unbindCurrentClientLocked() is always called every time when IMMS#mCurMethodId is cleared to null. Note that clearing IMMS#mCurMethodId to null is a kind of hard-reset, where unbinding IME client should make much sense in terms of robust and predictable state management. Bug: 18056075 Change-Id: I6c3186050592526fc95c5b27f18e2155acff5ebc (cherry picked from commit e13a20fa)
Loading
Please register or sign in to comment