From 9a73f88845b5b5c678855e9767e831c74f5efabf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Kukla?= Date: Mon, 19 Aug 2024 08:20:32 +0200 Subject: [PATCH] Removed spare Element checking in OnDetachedFrom --- .../PlatformBehaviors/Touch/TouchBehavior.android.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/CommunityToolkit.Maui/Behaviors/PlatformBehaviors/Touch/TouchBehavior.android.cs b/src/CommunityToolkit.Maui/Behaviors/PlatformBehaviors/Touch/TouchBehavior.android.cs index 6b5a56c719..09f18bc60f 100644 --- a/src/CommunityToolkit.Maui/Behaviors/PlatformBehaviors/Touch/TouchBehavior.android.cs +++ b/src/CommunityToolkit.Maui/Behaviors/PlatformBehaviors/Touch/TouchBehavior.android.cs @@ -75,11 +75,6 @@ protected override void OnDetachedFrom(VisualElement bindable, AView platformVie view = platformView; - if (Element is null) - { - return; - } - try { if (accessibilityManager is not null && accessibilityListener is not null)