android: fix camera stop
This commit is contained in:
parent
fd32c3fd86
commit
ad3bcd2e0a
1 changed files with 3 additions and 1 deletions
|
@ -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(() -> {
|
||||||
mCameraProvider.unbindAll();
|
if (mCameraProvider != null) {
|
||||||
|
mCameraProvider.unbindAll();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue