Hacker News new | ask | show | jobs
by jeroenhd 976 days ago
> Hopefully a relatively easy fix on the OS side: ensure that these toasts have a higher z-index than app overlay windows.

The point of the system overlay permission is to draw on top of everything else. Maybe Android should introduce some kind of overlay overlay overlay to overlay clipboard messages, but I think that would probably overcomplicate the API.

Perhaps it's better to instead send a notification when an application rendering a system overlay accesses the clipboard as well. That way, users closing out of the app can see that the application has accessed the clipboard.

Of course sufficiently privileged applications can dismiss notifications, but that requires even more difficult to attain permissions.

3 comments

I think this makes a good case for something in between that can display the annoying popup chat bubbles, but can't override toasts.
Or just make it so the system-wide Toast cannot be overdrawn, it will always stay on top.
An overlay buster buster