From 8716e6b68d4578cc43bdfc61d79586daf29d4760 Mon Sep 17 00:00:00 2001 From: Tomasz Cielecki Date: Mon, 4 Apr 2016 15:38:03 +0200 Subject: [PATCH] Temporarily revert to be able to build Leanback. See #206 --- MvvmCross.Droid.Support.V7.RecyclerView/IMvxRecyclerAdapter.cs | 2 ++ MvvmCross.Droid.Support.V7.RecyclerView/MvxRecyclerAdapter.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/MvvmCross.Droid.Support.V7.RecyclerView/IMvxRecyclerAdapter.cs b/MvvmCross.Droid.Support.V7.RecyclerView/IMvxRecyclerAdapter.cs index 233266b..41274f3 100644 --- a/MvvmCross.Droid.Support.V7.RecyclerView/IMvxRecyclerAdapter.cs +++ b/MvvmCross.Droid.Support.V7.RecyclerView/IMvxRecyclerAdapter.cs @@ -22,5 +22,7 @@ public interface IMvxRecyclerAdapter ICommand ItemLongClick { get; set; } object GetItem(int position); + + int ItemTemplateId { get; set; } } } \ No newline at end of file diff --git a/MvvmCross.Droid.Support.V7.RecyclerView/MvxRecyclerAdapter.cs b/MvvmCross.Droid.Support.V7.RecyclerView/MvxRecyclerAdapter.cs index 41b1734..f96dfa5 100644 --- a/MvvmCross.Droid.Support.V7.RecyclerView/MvxRecyclerAdapter.cs +++ b/MvvmCross.Droid.Support.V7.RecyclerView/MvxRecyclerAdapter.cs @@ -155,6 +155,8 @@ public virtual object GetItem(int position) return _itemsSource.ElementAt(position); } + public int ItemTemplateId { get; set; } + protected virtual void SetItemsSource(IEnumerable value) { if (ReferenceEquals(_itemsSource, value) && !ReloadOnAllItemsSourceSets)