|
@@ -101,7 +101,13 @@ public class FloatingButton: UIView {
|
|
|
if !Utils.getIconDock().isEmpty && Utils.getConfigModeFB() == MODE_VERTICAL_FLOATING_BUTTON {
|
|
|
dataImage = try? Data(contentsOf: URL(string: Utils.getUrlDock()!)!)
|
|
|
if dataImage != nil {
|
|
|
- nexilis_button.image = UIImage(data: dataImage!)
|
|
|
+ if let image = UIImage(data: dataImage!) {
|
|
|
+ nexilis_button.image = image
|
|
|
+ } else {
|
|
|
+ nexilis_button.image = UIImage(named: Utils.getFBIconBg() == "1" ? "pb_button" : "pb_ball", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ nexilis_button.image = UIImage(named: Utils.getFBIconBg() == "1" ? "pb_button" : "pb_ball", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)
|
|
|
}
|
|
|
} else {
|
|
|
if Utils.getConfigModeFB() == MODE_HORIZONTAL_SIDE_TAB {
|