Drutol / MALClient

Not so small client app for Myanimelist.net - Windows 10 UWP & Android
GNU General Public License v3.0
352 stars 32 forks source link

ISwipeListener error when building for Android #257

Closed gitfib closed 5 years ago

gitfib commented 5 years ago

System

Drutol commented 5 years ago

Hello, these are some peculiar binding issues.

You just have to comment this code out, build the binding, uncomment the code and build again. Binding_SwipeLayout/Additions/SwipeLayout.cs

public partial class SwipeLayout
    {
        private Com.Daimajia.Swipe.SwipeLayout.ISwipeListener _swipeListener;

        public Com.Daimajia.Swipe.SwipeLayout.ISwipeListener SwipeListener
        {
            get { return _swipeListener; }
            set
            {
                if (_swipeListener != null)
                    RemoveSwipeListener(_swipeListener);

                _swipeListener = value;
                AddSwipeListener(_swipeListener);
            }
        }
    }

It's just a little addition to simplify having only one listener.