Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Fishbowler committed Jan 4, 2025
1 parent 02fcbcc commit 9a71023
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 { })

0 comments on commit 9a71023

Please sign in to comment.