TextPrompt length/lines changeable from java code side.
Closed this issue · 4 comments
Feature add request.
Yes. I currently need this feature as the 16 char limit is too small. I might make a pull request later if I get this working on my side. You should integrate some tests using JUnit or grade within this repo to allow easier testing.
Also, when you are waiting for the dialog to be built on the UI Thread, use Thread.yield()
instead of Thread.sleep(10)
to allow the program to yield the CPU for more important things.
I took a 15 minute dive into yield() vs sleep(). From what I have read they say the sleep() is better than yield(). One reason was that yield() is just a suggestion to pause the thread, while sleep() truly pauses the thread.
1.2.1 provides a method so set maxLength for input. I close this. If you want to push the yield stuff further please open new issue and add some explanation why it is better than sleep(). Thanks man!