mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-10-03 19:10:36 -04:00
Only requestRender() when GLTextureView is not null
This commit is contained in:
1 parent
f8a73da290
commit
7c68a3ac2a
1 file changed
+1
-1
@@ -763,7 +763,7 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
mIsResuming = true;
|
||||
glSurfaceView.requestRender();
|
||||
if (glSurfaceView != null) glSurfaceView.requestRender();
|
||||
final int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
|
||||
final View decorView = getWindow().getDecorView();
|
||||
decorView.setSystemUiVisibility(uiOptions);
|
||||
|
||||
Reference in new issue
Block a user