robinmanuelthiel / flexbutton

Flexible button control for Xamarin.Forms
MIT License
240 stars 34 forks source link

[Android] TouchedDownCommand NullReferenceException #87

Closed fgbustoa closed 3 years ago

fgbustoa commented 4 years ago

Describe the bug If i set a TouchedDownCommand property in XAML, i then receive a NullReferenceException. Someone already mentioned this problem in UWP. Also Android is affected

TouchedUpCommand is OK, and is correctly fired

To Reproduce Steps to reproduce the behavior:

<flex:FlexButton BackgroundColor="Blue" CornerRadius="24" ForegroundColor="White" HeightRequest="48" HorizontalOptions="Center" Icon="recorder.png" IsVisible="True" TouchedDownCommand="{Binding StartRecordingCommand}" TouchedUpCommand="{Binding StopRecordingCommand}" VerticalOptions="Center" WidthRequest="48" />

Expected behavior Handle the 2 commands

Please complete the following information:

robinmanuelthiel commented 3 years ago

Can confirm. I finally got time to work on that project again, so it will hopefully be fixed over the holidays.