Merge "Make accessing mInputMethodTarget thread-safe"
This commit is contained in:
@@ -6192,10 +6192,13 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
int retryCount = 0;
|
int retryCount = 0;
|
||||||
WindowState appWin = null;
|
WindowState appWin = null;
|
||||||
|
|
||||||
final boolean appIsImTarget = mInputMethodTarget != null
|
boolean appIsImTarget;
|
||||||
&& mInputMethodTarget.mAppToken != null
|
synchronized(mWindowMap) {
|
||||||
&& mInputMethodTarget.mAppToken.appToken != null
|
appIsImTarget = mInputMethodTarget != null
|
||||||
&& mInputMethodTarget.mAppToken.appToken.asBinder() == appToken;
|
&& mInputMethodTarget.mAppToken != null
|
||||||
|
&& mInputMethodTarget.mAppToken.appToken != null
|
||||||
|
&& mInputMethodTarget.mAppToken.appToken.asBinder() == appToken;
|
||||||
|
}
|
||||||
|
|
||||||
final int aboveAppLayer = (mPolicy.windowTypeToLayerLw(TYPE_APPLICATION) + 1)
|
final int aboveAppLayer = (mPolicy.windowTypeToLayerLw(TYPE_APPLICATION) + 1)
|
||||||
* TYPE_LAYER_MULTIPLIER + TYPE_LAYER_OFFSET;
|
* TYPE_LAYER_MULTIPLIER + TYPE_LAYER_OFFSET;
|
||||||
|
|||||||
Reference in New Issue
Block a user