Story collage improvements

This commit is contained in:
Ilya Laktyushin
2024-11-30 04:06:13 +04:00
parent 685ed2cc9e
commit 7dd7a6ba69
4 changed files with 31 additions and 11 deletions

View File

@@ -2615,13 +2615,9 @@ public class CameraScreenImpl: ViewController, CameraScreen {
view.animateOutToEditor(transition: transition)
}
Queue.mainQueue().after(2.0, {
if self.cameraState.isCollageEnabled {
self.collage = nil
if let collageView = self.collageView {
collageView.removeFromSuperview()
self.collageView = nil
}
Queue.mainQueue().after(1.5, {
if let collageView = self.collageView {
collageView.stopPlayback()
}
})
}
@@ -2679,6 +2675,10 @@ public class CameraScreenImpl: ViewController, CameraScreen {
if !toGallery {
self.resumeCameraCapture(fromGallery: false)
if let collageView = self.collageView {
collageView.resetPlayback()
}
self.cameraIsActive = true
self.requestUpdateLayout(transition: .immediate)