Skip to content

Commit

Permalink
Fix Unity Compat
Browse files Browse the repository at this point in the history
  • Loading branch information
CADIndie committed Apr 9, 2024
1 parent 91f78dd commit e250688
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/main/java/pojlib/UnityPlayerActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,19 +147,13 @@ public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) {
{
super.onStop();

if (!MultiWindowSupport.getAllowResizableWindow(this))
return;

mUnityPlayer.pause();
}

@Override protected void onStart()
{
super.onStart();

if (!MultiWindowSupport.getAllowResizableWindow(this))
return;

mUnityPlayer.resume();
}

Expand All @@ -168,11 +162,6 @@ public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) {
{
super.onPause();

MultiWindowSupport.saveMultiWindowMode(this);

if (MultiWindowSupport.getAllowResizableWindow(this))
return;

mUnityPlayer.pause();
}

Expand All @@ -181,9 +170,6 @@ public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) {
{
super.onResume();

if (MultiWindowSupport.getAllowResizableWindow(this) && !MultiWindowSupport.isMultiWindowModeChangedToTrue(this))
return;

mUnityPlayer.resume();
}

Expand Down

0 comments on commit e250688

Please sign in to comment.