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

Commit 3bd6d50d authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "remove view from parent to prevent FC" into gingerbread

parents 368110b2 323cd41c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@ import android.content.res.Configuration;
import android.content.res.Resources;
import android.preference.PreferenceManager;
import android.view.InflateException;
import android.view.ViewGroup;
import android.view.ViewParent;

import java.lang.ref.SoftReference;
import java.util.Arrays;
@@ -549,6 +551,10 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
        mInputMethodService.mHandler.post(new Runnable() {
            public void run() {
                if (mInputView != null) {
                    ViewParent p = mInputView.getParent();
                    if (p != null && p instanceof ViewGroup) {
                        ((ViewGroup)mInputView.getParent()).removeView(mInputView);
                    }
                    mInputMethodService.setInputView(mInputView);
                }
                mInputMethodService.updateInputViewShown();