Issue
For example in game Asphalt 9, when the player swiping down the notification, the game is paused.
I have tried onPause, but it only fired when I switch to another app / activity. It doesn't detect something like opening the notification pane.
Solution
You can override onWindowFocusChanged method of activity. It will loose focus when user open notification bar or some system dialog show up.
Answered By - Leonidos
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.