Fix resolution resetting when launcher goes in the background

This commit is contained in:
ArtDev 2021-01-19 17:39:58 +03:00
parent df3a908df0
commit 24d10d395c
2 changed files with 6 additions and 7 deletions

View file

@ -698,13 +698,14 @@ public class BaseMainActivity extends LoggableActivity {
@Override
public void onSurfaceTextureUpdated(SurfaceTexture texture) {
texture.setDefaultBufferSize(CallbackBridge.windowWidth,CallbackBridge.windowHeight);
}
});
} catch (Throwable e) {
Tools.showError(this, e, true);
}
}
/*
@Override
public boolean dispatchKeyEvent(KeyEvent event) {