Skip to content

Commit

Permalink
Merge pull request #34841 from EhNuhc/patch-1
Browse files Browse the repository at this point in the history
Force to make activity fullscreen
  • Loading branch information
ZhilkinSerg authored Oct 18, 2019
2 parents e19d21f + 636f49f commit d816955
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions android/app/src/main/java/org/libsdl/app/SDLActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -631,9 +631,9 @@ public void handleMessage(Message msg) {
} else {
int flags = View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_VISIBLE;
window.getDecorView().setSystemUiVisibility(flags);
window.addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
window.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
SDLActivity.mFullscreenModeActive = false;
window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
window.clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
SDLActivity.mFullscreenModeActive = true;
}
}
} else {
Expand Down

0 comments on commit d816955

Please sign in to comment.