mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Story collage improvements
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user