|
@@ -317,11 +317,10 @@ class NCDetailViewController: UIViewController, MediaBrowserViewControllerDelega
|
|
|
try data!.write(to: url, options: .atomic)
|
|
|
completion(index, UIImage.init(data: data!), ZoomScale.default, nil)
|
|
|
} catch {
|
|
|
+ completion(index, CCGraphics.changeThemingColorImage(UIImage.init(named: "imageOffOutline"), width: self.view.frame.width, height: self.view.frame.width, color: NCBrandColor.sharedInstance.brand), ZoomScale.default, nil)
|
|
|
}
|
|
|
} else {
|
|
|
- let size = self.backgroundView.frame.width
|
|
|
- let image = CCGraphics.changeThemingColorImage(UIImage.init(named: "imageOffOutline"), width: size, height: size, color: NCBrandColor.sharedInstance.brand)
|
|
|
- completion(index, image, ZoomScale.default, nil)
|
|
|
+ completion(index, CCGraphics.changeThemingColorImage(UIImage.init(named: "imageOffOutline"), width: self.view.frame.width, height: self.view.frame.width, color: NCBrandColor.sharedInstance.brand), ZoomScale.default, nil)
|
|
|
}
|
|
|
}
|
|
|
}
|