reinitialize camera on orientation change

This commit is contained in:
cyberta
2020-08-17 19:03:49 +02:00
parent 475b16852c
commit f9f2f87c7c
@@ -108,11 +108,12 @@ public class QuickAttachmentDrawer extends ViewGroup implements InputView, Camer
final boolean rotationChanged = this.rotation != rotation;
this.rotation = rotation;
if (rotationChanged) {
if (isShowing()) {
cameraView.onPause();
}
updateControlsView();
setDrawerStateAndUpdate(drawerState, true);
if (isShowing()) {
cameraView.onPause();
cameraView.onResume();
}
}
}