How can Toasts be made to appear only if the app is in the foreground?

后端 未结 3 765
庸人自扰
庸人自扰 2021-02-09 07:17

I have a Toast that is called from inside a Service. It always appears regardless of the state of the app, as designed.

How can make it appear

3条回答
提交回复
热议问题