From 2e53aa2f486f0742a5720d9eb0d65042e9a2da10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=86=A0=E6=9D=B0?= <815712739@qq.com> Date: Thu, 29 Dec 2016 11:31:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=86=97=E4=BD=99=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit public ItemViewDelegateManager addDelegate(ItemViewDelegate delegate) { int viewType = delegates.size(); if (delegate != null) { delegates.put(viewType, delegate); //viewType++ } return this; } --- .../zhy/adapter/recyclerview/base/ItemViewDelegateManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baseadapter-recyclerview/src/main/java/com/zhy/adapter/recyclerview/base/ItemViewDelegateManager.java b/baseadapter-recyclerview/src/main/java/com/zhy/adapter/recyclerview/base/ItemViewDelegateManager.java index 3c8dba8..d81cfd7 100644 --- a/baseadapter-recyclerview/src/main/java/com/zhy/adapter/recyclerview/base/ItemViewDelegateManager.java +++ b/baseadapter-recyclerview/src/main/java/com/zhy/adapter/recyclerview/base/ItemViewDelegateManager.java @@ -21,7 +21,7 @@ public ItemViewDelegateManager addDelegate(ItemViewDelegate delegate) if (delegate != null) { delegates.put(viewType, delegate); - viewType++; + //viewType++ } return this; }