Hi Aleksei,
I don't think its related to increasing the time of toast message.
Its some constraint of UIAutomator itself to identify the toast control.
The reason I am saying is I tried spying the UI of my app (having toast on it) using the UIAutomatorviewer object spy but it failed to recognize the toast.
If you have succeeded in doing so then please share the code. It would be a great help
Thanks in advance,
Nishant Shah