mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
reinitialize camera on orientation change
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user