How to change default/place holder Blue Android Icon in Toast, Android 11

Viewed 1158

I'm testing my app on an Android 11 emulator (Pixel 5 API 31), when I open a toast notification I see the following: enter image description here

Where the toast has a blue default/place holder android icon next to it. How do I replace this placeholder icon with my own icon?

Older versions of android do not show any icon with the toast message.

My app already has a custom Launcher Icon, Notification Icon and Action Bar and Tab Icons. So it appears it's not inheriting from this, but I can't work out what I need to add or change to replace it with either my own icon or remove it.

This is my java code to launch a toast if required:

   Toast.makeText(getContext(),getString(R.string.crashTurnedOn),Toast.LENGTH_SHORT).show();

Thank you for any help.

0 Answers
Related