Skip to content

Commit c1cd54a

Browse files
modified the fix
1 parent 5bcc1b4 commit c1cd54a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Core/src/Handlers/Editor/EditorHandler.iOS.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,16 @@ public static void MapBackground(IEditorHandler handler, IEditor editor)
9494
var provider = handler.GetRequiredService<IImageSourceServiceProvider>();
9595
platformView.UpdateBackgroundImageSourceAsync(image.ImageSource, provider)
9696
.FireAndForget(handler);
97-
return;
9897
}
99-
100-
if (editor.Background.IsNullOrEmpty())
98+
else if (editor.Background.IsNullOrEmpty())
10199
{
102100
platformView.RemoveBackgroundLayer();
103101
platformView.BackgroundColor = null;
104-
return;
105102
}
106-
107-
platformView.UpdateBackground(editor);
103+
else
104+
{
105+
platformView.UpdateBackground(editor);
106+
}
108107
}
109108

110109
public static void MapTextColor(IEditorHandler handler, IEditor editor) =>

src/Core/src/Handlers/Entry/EntryHandler.iOS.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,16 @@ public static void MapBackground(IEntryHandler handler, IEntry entry)
6060
.FireAndForget(handler);
6161
return;
6262
}
63-
64-
if (entry.Background.IsNullOrEmpty())
63+
else if (entry.Background.IsNullOrEmpty())
6564
{
6665
platformView.RemoveBackgroundLayer();
6766
platformView.BackgroundColor = null;
6867
return;
6968
}
70-
71-
platformView.UpdateBackground(entry);
69+
else
70+
{
71+
platformView.UpdateBackground(entry);
72+
}
7273
}
7374

7475
public static void MapTextColor(IEntryHandler handler, IEntry entry)

0 commit comments

Comments
 (0)