mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 22:03:54 +00:00
update controls properly on orientation change
fixes #3697 closes #3732 // FREEBIE
This commit is contained in:
parent
e8712b3a29
commit
83919c087d
@ -105,12 +105,11 @@ public class QuickAttachmentDrawer extends ViewGroup {
|
|||||||
final boolean rotationChanged = this.rotation != rotation;
|
final boolean rotationChanged = this.rotation != rotation;
|
||||||
this.rotation = rotation;
|
this.rotation = rotation;
|
||||||
if (rotationChanged) {
|
if (rotationChanged) {
|
||||||
Log.w(TAG, String.format("onNewOrientation(old %d, new %d)", this.rotation, rotation));
|
|
||||||
if (isOpen()) {
|
if (isOpen()) {
|
||||||
quickCamera.onPause();
|
quickCamera.onPause();
|
||||||
setDrawerStateAndAnimate(drawerState);
|
|
||||||
}
|
}
|
||||||
updateControlsView();
|
updateControlsView();
|
||||||
|
setDrawerStateAndAnimate(drawerState);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user