mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-11 13:45:48 -04:00
Only requestRender() when GLTextureView is not null
This commit is contained in:
parent
f8a73da290
commit
7c68a3ac2a
@ -763,7 +763,7 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
|
|||||||
public void onResume() {
|
public void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
mIsResuming = true;
|
mIsResuming = true;
|
||||||
glSurfaceView.requestRender();
|
if (glSurfaceView != null) glSurfaceView.requestRender();
|
||||||
final int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
|
final int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
|
||||||
final View decorView = getWindow().getDecorView();
|
final View decorView = getWindow().getDecorView();
|
||||||
decorView.setSystemUiVisibility(uiOptions);
|
decorView.setSystemUiVisibility(uiOptions);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user