Skip to content

Commit

Permalink
Update GameActivity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Dec 21, 2024
1 parent 8ba06a9 commit 990ba0e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ protected void onResume() {
registerSensors();
}

@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
setInsets(findViewById(R.id.drawer_fragment));
}

private void enablePIP() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
PictureInPictureParams.Builder builder = new PictureInPictureParams.Builder();
Expand Down

0 comments on commit 990ba0e

Please sign in to comment.