Add custom Popup Message duration and position setting

Tyler2213

New member
So that it is possible to get a toast message for a long time and place it anywhere instead of the default options, add Custom to Duration and Position for the Popup Message action.
 
Last edited:

FrameXX

Well-known member
You can always use UiTask which has way more settings for toast message. But exact duration is also not here. Just short and long duration. I suspect that toast duration is managed by android and apps can only specify long or short duration, but maybe I am lying here. I am not sure.
 

MacroDroidDev

Administrator
Staff member
Toast durations are fixed, but a neat trick is if you want it to appear longer then you can just call it multiple times and it should remain on screen longer (without dissapearing and re-appearing). For example if you add it in a loop that runs 10 times, it will appear for 10 times as long.
 
Is there some way to enable a toast to immediately replace a currently displaying toast? It used to happen for me but for a while now it's been waiting for one to end before the next displays, which is reasonable default behaviour but worse for my use case.
 

sneike

New member
Toast durations are fixed, but a neat trick is if you want it to appear longer then you can just call it multiple times and it should remain on screen longer (without dissapearing and re-appearing). For example if you add it in a loop that runs 10 times, it will appear for 10 times as long.
I tried the loop trick, it works even though you can see the pop-up disappearing and reappearing. You say it works without doing that, is there something I'm missing? Maybe it depends by the android version or vendor UI?

I use a custom toast with long duration in a loop of 3 repetitions.

edit: actually, the loop only seems to work if MacroDroid is open in the foreground. If I run the macro with the app closed the toast only appears once.

Thanks
 
Last edited:
Top