Browse Source

Merge pull request #12415 from 3dfxuser/fix

Add null check for TextInputMethodClient in OnSelectionChanged() method
pull/12450/head
Benedikt Stebner 3 years ago
committed by GitHub
parent
commit
92957ebffc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/Android/Avalonia.Android/AndroidInputMethod.cs

5
src/Android/Avalonia.Android/AndroidInputMethod.cs

@ -113,6 +113,11 @@ namespace Avalonia.Android
private void OnSelectionChanged()
{
if (Client is null)
{
return;
}
var selection = Client.Selection;
_imm.UpdateSelection(_host, selection.Start, selection.End, selection.Start, selection.End);

Loading…
Cancel
Save