mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Disable drawing animations when energy saving
This commit is contained in:
@@ -1994,6 +1994,7 @@ public class DrawingScreen: ViewController, TGPhotoDrawingInterfaceController, U
|
||||
var drawingView: DrawingView {
|
||||
if self._drawingView == nil, let controller = self.controller {
|
||||
self._drawingView = DrawingView(size: controller.size)
|
||||
self._drawingView?.animationsEnabled = self.context.sharedContext.energyUsageSettings.fullTranslucency
|
||||
self._drawingView?.shouldBegin = { [weak self] _ in
|
||||
if let strongSelf = self {
|
||||
if strongSelf._entitiesView?.hasSelection == true {
|
||||
|
||||
Reference in New Issue
Block a user