Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarinho committed Mar 24, 2021
1 parent 7bc4a77 commit 4be75d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Editor/EditorHandler.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static void MapIsTextPredictionEnabled(EditorHandler handler, IEditor edi

public static void MapFont(EditorHandler handler, IEditor editor)
{
var services = App.Current?.Services
var services = handler.Services
?? throw new InvalidOperationException($"Unable to find service provider, the App.Current.Services was null.");
var fontManager = services.GetRequiredService<IFontManager>();

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Editor/EditorHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public partial class EditorHandler
[nameof(IEditor.Text)] = MapText,
[nameof(IEditor.CharacterSpacing)] = MapCharacterSpacing,
[nameof(IEditor.MaxLength)] = MapMaxLength,
[nameof(IEditor.IsTextPredictionEnabled)] = MapIsTextPredictionEnabled
[nameof(IEditor.IsTextPredictionEnabled)] = MapIsTextPredictionEnabled,
[nameof(IEditor.Font)] = MapFont
};

Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Editor/EditorHandler.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ bool OnShouldChangeText(UITextView textView, NSRange range, string replacementSt

public static void MapFont(EditorHandler handler, IEditor editor)
{
var services = App.Current?.Services ??
var services = handler.Services ??
throw new InvalidOperationException($"Unable to find service provider, the App.Current.Services was null.");
var fontManager = services.GetRequiredService<IFontManager>();

Expand Down

0 comments on commit 4be75d3

Please sign in to comment.