My app shows sensitive information that I don't want showing up in the 'Recent Apps' screen so I'd like to change what is shown there, or have it show nothing.
I've seen an answer from a few years ago about using Activity.onCreateThumbnail()
but it doesn't seem to work. getWindow().addFlags(FLAG_SECURE)
achieves this but I don't want to prevent users from taking screenshots.
Is there a way I can achieve what I need?