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

Commit 0b45c2f8 authored by Filip Gruszczynski's avatar Filip Gruszczynski Committed by Android Git Automerger
Browse files

am 21b37a5f: Merge "Make accessing mInputMethodTarget thread-safe"

* commit '21b37a5f':
  Make accessing mInputMethodTarget thread-safe
parents b2387e65 21b37a5f
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -6196,10 +6196,13 @@ public class WindowManagerService extends IWindowManager.Stub
        int retryCount = 0;
        WindowState appWin = null;

        final boolean appIsImTarget = mInputMethodTarget != null
        boolean appIsImTarget;
        synchronized(mWindowMap) {
            appIsImTarget = mInputMethodTarget != null
                    && mInputMethodTarget.mAppToken != null
                    && mInputMethodTarget.mAppToken.appToken != null
                    && mInputMethodTarget.mAppToken.appToken.asBinder() == appToken;
        }

        final int aboveAppLayer = (mPolicy.windowTypeToLayerLw(TYPE_APPLICATION) + 1)
                * TYPE_LAYER_MULTIPLIER + TYPE_LAYER_OFFSET;