android: fix camera stop

This commit is contained in:
ardocrat 2024-05-14 09:31:12 +03:00
parent fd32c3fd86
commit ad3bcd2e0a

View file

@ -310,7 +310,9 @@ public class MainActivity extends GameActivity {
View content = findViewById(android.R.id.content); View content = findViewById(android.R.id.content);
if (content != null) { if (content != null) {
content.post(() -> { content.post(() -> {
if (mCameraProvider != null) {
mCameraProvider.unbindAll(); mCameraProvider.unbindAll();
}
}); });
} }
} }