mirror of
https://code.gri.mw/GUI/grim.git
synced 2026-07-12 17:58:55 +00:00
android: fix camera stop
This commit is contained in:
@@ -310,7 +310,9 @@ public class MainActivity extends GameActivity {
|
||||
View content = findViewById(android.R.id.content);
|
||||
if (content != null) {
|
||||
content.post(() -> {
|
||||
mCameraProvider.unbindAll();
|
||||
if (mCameraProvider != null) {
|
||||
mCameraProvider.unbindAll();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user