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

Commit d0b16e85 authored by Felix Stern's avatar Felix Stern
Browse files

Unbind Input Method if it was forcefully stopped

Fix: 418086126
Flag: EXEMPT bugfix
Test: manual show IME, run `adb shell am force-stop com.google.android.inputmethod.latin` and verify that the IME show up again
Change-Id: I94eff789576cf27b42b171bb87e30133329676dc
parent d14ff733
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -378,6 +378,12 @@ final class InputMethodBindingController {
     */
    @GuardedBy("ImfLock.class")
    private final ServiceConnection mMainConnection = new ServiceConnection() {
        @Override
        public void onBindingDied(ComponentName name) {
            synchronized (ImfLock.class) {
                unbindCurrentMethod();
            }
        }
        @Override
        public void onServiceConnected(ComponentName name, IBinder service) {
            Trace.traceBegin(TRACE_TAG_WINDOW_MANAGER, "IMMS.onServiceConnected");