Skip to content

Commit

Permalink
Remove code that enables/disables Editor (#26122)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis authored Nov 26, 2024
1 parent c49de14 commit 2791c58
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Core/src/Handlers/Editor/EditorHandler.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@ public override void SetVirtualView(IView view)
// TODO: NET8 issoto - Change the platformView type to MauiAppCompatEditText
protected override void ConnectHandler(AppCompatEditText platformView)
{
platformView.ViewAttachedToWindow += OnPlatformViewAttachedToWindow;
platformView.TextChanged += OnTextChanged;
platformView.FocusChange += OnFocusChange;
}

// TODO: NET8 issoto - Change the platformView type to MauiAppCompatEditText
protected override void DisconnectHandler(AppCompatEditText platformView)
{
platformView.ViewAttachedToWindow -= OnPlatformViewAttachedToWindow;
platformView.TextChanged -= OnTextChanged;
platformView.FocusChange -= OnFocusChange;

Expand Down Expand Up @@ -123,16 +121,6 @@ static void MapFocus(IEditorHandler handler, IEditor editor, object? args)
handler.PlatformView.Focus(request);
}

void OnPlatformViewAttachedToWindow(object? sender, ViewAttachedToWindowEventArgs e)
{
if (PlatformView.IsAlive() && PlatformView.Enabled)
{
// https://issuetracker.google.com/issues/37095917
PlatformView.Enabled = false;
PlatformView.Enabled = true;
}
}

void OnTextChanged(object? sender, Android.Text.TextChangedEventArgs e)
{
// Let the mapping know that the update is coming from changes to the platform control
Expand Down

0 comments on commit 2791c58

Please sign in to comment.