Skip to content

Commit

Permalink
Add a short delay between backspace taps to ensure the correct number…
Browse files Browse the repository at this point in the history
… of taps occur

Repeated tests show that the emulator can be slightly inconsistent and occasionally add an extra tap
  • Loading branch information
Fishbowler committed Nov 3, 2024
1 parent df9fc2f commit 47c1305
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ class Service(

for (i in 1..charactersToErase) {
uiDevice.pressDelete()
Thread.sleep(50) // Attempt to ensure perfect count of taps on emulators
}

responseObserver.onNext(eraseAllTextResponse { })
Expand Down

0 comments on commit 47c1305

Please sign in to comment.