Native Java Dialog behaviour on focus loss

Hi everyone! Here is my problem: I made a test project for Android to try out some utilities function, the test scene just shows some buttons with the Unity GUI, each button calls some function in java which shows an AlertDialog.
I noticed that when i put on Pause/Stop my activity and resume it (by pressing the home button on the device and reopening the unity app, for example), the dialogs won’t show anymore (not even by pressing the GUI buttons again).
I have the feeling it’s a focus problem (i have to confirm this, tho).
I also noticed that this doesn’t happen on common Android apps which use the same code to call the dialogs, so i guess it’s something about the Unity behavior.
The code which shows the dialogs is inside a Runnable class which is used with the RunOnUIThread method of the UnityPlayerActivity.
How can i fix this? :frowning:

Just changed the way i was passing the Context parameter to dialog and now all is working fine ^^