Skip to content

Commit

Permalink
Fix off-by-one when specifying count with inputText (fixes mobile-dev…
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishbowler committed Nov 11, 2024
1 parent 759d954 commit 42ccfd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class Service(
val charactersToErase = request.charactersToErase
Log.d("Maestro", "Erasing text $charactersToErase")

for (i in 0..charactersToErase) {
for (i in 1..charactersToErase) {
uiDevice.pressDelete()
}

Expand Down

0 comments on commit 42ccfd0

Please sign in to comment.