update controls properly on orientation change

fixes #3697
closes #3732
// FREEBIE
This commit is contained in:
Jake McGinty 2015-07-20 16:00:16 -07:00 committed by Moxie Marlinspike
parent e8712b3a29
commit 83919c087d

View file

@ -105,12 +105,11 @@ public class QuickAttachmentDrawer extends ViewGroup {
final boolean rotationChanged = this.rotation != rotation;
this.rotation = rotation;
if (rotationChanged) {
Log.w(TAG, String.format("onNewOrientation(old %d, new %d)", this.rotation, rotation));
if (isOpen()) {
quickCamera.onPause();
setDrawerStateAndAnimate(drawerState);
}
updateControlsView();
setDrawerStateAndAnimate(drawerState);
}
}