Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preventing a third party library from making a Toast message?

Tags:

android

toast

I have to call a method in a third party library, and unfortunately the method makes an unnecessary Toast message. Is there a way to prevent the Toast message from showing (eg. temporarily turn off all Toast messages right before calling the method, and turning them on right after)?

like image 720
Robert Bana Avatar asked Dec 04 '25 02:12

Robert Bana


1 Answers

No, sorry. If you have the source code to the third-party library, you can cut out the offending Toast. Or, you can ask the developers of the library to get rid of the Toast, or make it configurable. Otherwise, you are stuck with it.

like image 66
CommonsWare Avatar answered Dec 06 '25 17:12

CommonsWare