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 3, 2024
1 parent e957c5e commit df9fc2f
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 df9fc2f

Please sign in to comment.