Skip to content

Commit f1e7806

Browse files
Fixed crash on non-layouts on android
1 parent df53569 commit f1e7806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TouchEffect.Droid/PlatformTouchEff.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private void StartRipple(float x, float y)
223223
{
224224
if (_effect?.IsDisabled ?? true) return;
225225

226-
if (_effect.CanExecute && _effect.NativeAnimation && _viewOverlay.Background is RippleDrawable)
226+
if (_effect.CanExecute && _effect.NativeAnimation && _viewOverlay?.Background is RippleDrawable)
227227
{
228228
UpdateRipple();
229229
_viewOverlay.BringToFront();

0 commit comments

Comments
 (0)