Skip to content

Commit

Permalink
revert "Flip RTL text before sending it #184"
Browse files Browse the repository at this point in the history
reverts 06477bc
  • Loading branch information
amiremohamadi committed Oct 13, 2024
1 parent 3cc8c5e commit 0a6a1b2
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

import androidx.appcompat.app.ActionBar;
import androidx.appcompat.widget.Toolbar;
import androidx.core.text.TextDirectionHeuristicsCompat;
import androidx.core.view.OnApplyWindowInsetsListener;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowCompat;
Expand Down Expand Up @@ -285,9 +284,6 @@ public boolean dispatchKeyEvent(KeyEvent event) {
* Callbacks from Send text dialog
*/
public void onSendTextFinished(String text, boolean done) {
if (TextDirectionHeuristicsCompat.FIRSTSTRONG_LTR.isRtl(text, 0, text.length())) {
text = new StringBuilder(text).reverse().toString();
}
Input.SendText action = new Input.SendText(text, done);
action.execute(hostManager.getConnection(), null, null);
}
Expand Down

0 comments on commit 0a6a1b2

Please sign in to comment.