Update Android port
* java/org/gnu/emacs/EmacsInputConnection.java (EmacsInputConnection): Add compatibility adjustments for Samsung devices.
This commit is contained in:
parent
ce238de2b1
commit
9a958c59a2
1 changed files with 7 additions and 0 deletions
|
@ -65,6 +65,13 @@ public final class EmacsInputConnection extends BaseInputConnection
|
|||
if (Build.MANUFACTURER.equalsIgnoreCase ("Huawei")
|
||||
|| Build.MANUFACTURER.equalsIgnoreCase ("Honor"))
|
||||
extractAbsoluteOffsets = syncAfterCommit = true;
|
||||
|
||||
/* The Samsung keyboard takes `selectionStart' at face value if
|
||||
some text is returned, and also searches for words solely
|
||||
within that text. However, when no text is returned, it falls
|
||||
back to getTextAfterCursor and getTextBeforeCursor. */
|
||||
if (Build.MANUFACTURER.equalsIgnoreCase ("Samsung"))
|
||||
extractAbsoluteOffsets = true;
|
||||
};
|
||||
|
||||
public
|
||||
|
|
Loading…
Add table
Reference in a new issue