Skip to content

Commit 8cecef3

Browse files
author
The android_world Authors
committed
Update _input_text function to support for non-ASCII characters
PiperOrigin-RevId: 817742556
1 parent 2953a24 commit 8cecef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android_world/env/adb_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def _split_words_and_newlines(text: str) -> Iterable[str]:
503503
if word:
504504
yield word
505505
if j < len(words) - 1:
506-
yield '%s'
506+
yield ' '
507507
if i < len(lines) - 1:
508508
yield '\n'
509509

@@ -532,7 +532,7 @@ def type_text(
532532
logging.info('Found \\n, pressing enter button.')
533533
press_enter_button(env)
534534
continue
535-
formatted = _adb_text_format(word)
535+
formatted = word
536536
logging.info('Attempting to type word: %r', formatted)
537537
response = env.execute_adb_call(
538538
adb_pb2.AdbRequest(

0 commit comments

Comments
 (0)