diff --git a/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.Android.cs b/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.Android.cs index f9ad4288de59..fbaf35a279e7 100644 --- a/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.Android.cs +++ b/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.Android.cs @@ -71,14 +71,14 @@ protected override void OnUnloaded() if (_textBoxView != null) { _textBoxView.OnFocusChangeListener = null; - } - // We always force lose the focus when unloading the control. - // This is required as the FocusChangedListener may not be called - // when the unloaded propagation is done on the .NET side (see - // FeatureConfiguration.FrameworkElement.AndroidUseManagedLoadedUnloaded for - // more details. - ProcessFocusChanged(false); + // We always force lose the focus when unloading the control. + // This is required as the FocusChangedListener may not be called + // when the unloaded propagation is done on the .NET side (see + // FeatureConfiguration.FrameworkElement.AndroidUseManagedLoadedUnloaded for + // more details. + ProcessFocusChanged(false); + } } protected override void OnLoaded()