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

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

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

* commit '0b45c2f8':
  Make accessing mInputMethodTarget thread-safe
parents b2fae9bf 0b45c2f8
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;