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