Android. Java calls nativePause in onWindowFocusChanged

When I show messagebox, Java calls nativePause and then while messagebox is shown it blocks my SDL thread and it does’n handle screenorientation change event.
I can override onWindowFocusChanged Java method but what is the best way to solve this issue?