Correct deadlock in Android port
* java/org/gnu/emacs/EmacsService.java (updateCursorAnchorInfo): Delete extraneous whitespace. (updateExtractedText): Encase synchronous IM manager operation in deadlock prevention mechanism.
This commit is contained in:
parent
8255b9c1f1
commit
4bbad20d70
1 changed files with 2 additions and 2 deletions
|
@ -889,8 +889,6 @@ invocation of app_process (through android-emacs) can
|
|||
0);
|
||||
info = builder.build ();
|
||||
|
||||
|
||||
|
||||
if (DEBUG_IC)
|
||||
Log.d (TAG, ("updateCursorAnchorInfo: " + x + " " + y
|
||||
+ " " + yBaseline + "-" + yBottom));
|
||||
|
@ -1142,8 +1140,10 @@ else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
|
|||
if (DEBUG_IC)
|
||||
Log.d (TAG, "updateExtractedText: @" + token + ", " + text);
|
||||
|
||||
icBeginSynchronous ();
|
||||
window.view.imManager.updateExtractedText (window.view,
|
||||
token, text);
|
||||
icEndSynchronous ();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue