Permalink
Browse files

@emir-hasanbegovic fixed issue of recycler not having a queue to recy…

…lce to
  • Loading branch information...
emir-hasanbegovic committed Sep 12, 2014
1 parent fc2d15b commit d5ee0a91570febea189d4004bfd01fc5ee242312
@@ -20,15 +20,15 @@ Android 2.2 +
<dependency>
<groupId>mobi.parchment</groupId>
<artifactId>parchment</artifactId>
<version>1.6.7</version>
<version>1.6.9</version>
<type>apklib</type>
</dependency>
```

### build.gradle
```java
dependencies {
compile 'mobi.parchment:parchment:1.6.7@aar'
compile 'mobi.parchment:parchment:1.6.9@aar'
}
```

@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>mobi.parchment</groupId>
<artifactId>parchment</artifactId>
<version>1.6.8</version>
<version>1.6.9</version>
<packaging>apklib</packaging>
<name>Parchment</name>
<description>Android scrolling library</description>
@@ -28,6 +28,9 @@

public void recycle(final View removedView) {
final Integer type = mViewTypeMap.remove(removedView);
if (type == null) {
return;
}
final Queue<View> views = mViews.get(type);
views.add(removedView);
}
@@ -24,7 +24,7 @@
<dependency>
<groupId>mobi.parchment</groupId>
<artifactId>parchment</artifactId>
<version>1.6.8</version>
<version>1.6.9</version>
<optional>true</optional>
<type>apklib</type>
</dependency>

3 comments on commit d5ee0a9

@TinyChou

This comment has been minimized.

Copy link

TinyChou replied Nov 29, 2014

How about this issue?

time = 2014/11/28 07:34

PRODUCT = LT26ii_1266-9060

MODEL = LT26ii

SDK_INT = 15

java.lang.NullPointerException

at mobi.parchment.widget.adapterview.AdapterViewManager.getView(Unknown Source)

at mobi.parchment.widget.adapterview.listview.ListLayoutManager.getCell(Unknown Source)

at mobi.parchment.widget.adapterview.listview.ListLayoutManager.getCell(Unknown Source)

at mobi.parchment.widget.adapterview.LayoutManager.layoutCells(Unknown Source)

at mobi.parchment.widget.adapterview.LayoutManager.layout(Unknown Source)

at mobi.parchment.widget.adapterview.AbstractAdapterView.onLayout(Unknown Source)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1666)

at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1655)

at android.widget.LinearLayout.onLayout(LinearLayout.java:1431)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1666)

at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1655)

at android.widget.LinearLayout.onLayout(LinearLayout.java:1431)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.RelativeLayout.onLayout(RelativeLayout.java:930)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.FrameLayout.onLayout(FrameLayout.java:443)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1666)

at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1524)

at android.widget.LinearLayout.onLayout(LinearLayout.java:1429)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.FrameLayout.onLayout(FrameLayout.java:443)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1489)

at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)

at android.os.Handler.dispatchMessage(Handler.java:99)

at android.os.Looper.loop(Looper.java:137)

at android.app.ActivityThread.main(ActivityThread.java:4441)

at java.lang.reflect.Method.invokeNative(Native Method)

at java.lang.reflect.Method.invoke(Method.java:511)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:823)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:590)

at dalvik.system.NativeStart.main(Native Method)

@TinyChou

This comment has been minimized.

Copy link

TinyChou replied Nov 29, 2014

How about this issue?

time = 2014/11/28 07:34

PRODUCT = LT26ii_1266-9060

MODEL = LT26ii

SDK_INT = 15

java.lang.NullPointerException

at mobi.parchment.widget.adapterview.AdapterViewManager.getView(Unknown Source)

at mobi.parchment.widget.adapterview.listview.ListLayoutManager.getCell(Unknown Source)

at mobi.parchment.widget.adapterview.listview.ListLayoutManager.getCell(Unknown Source)

at mobi.parchment.widget.adapterview.LayoutManager.layoutCells(Unknown Source)

at mobi.parchment.widget.adapterview.LayoutManager.layout(Unknown Source)

at mobi.parchment.widget.adapterview.AbstractAdapterView.onLayout(Unknown Source)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1666)

at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1655)

at android.widget.LinearLayout.onLayout(LinearLayout.java:1431)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1666)

at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1655)

at android.widget.LinearLayout.onLayout(LinearLayout.java:1431)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.RelativeLayout.onLayout(RelativeLayout.java:930)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.FrameLayout.onLayout(FrameLayout.java:443)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1666)

at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1524)

at android.widget.LinearLayout.onLayout(LinearLayout.java:1429)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.FrameLayout.onLayout(FrameLayout.java:443)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1489)

at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)

at android.os.Handler.dispatchMessage(Handler.java:99)

at android.os.Looper.loop(Looper.java:137)

at android.app.ActivityThread.main(ActivityThread.java:4441)

at java.lang.reflect.Method.invokeNative(Native Method)

at java.lang.reflect.Method.invoke(Method.java:511)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:823)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:590)

at dalvik.system.NativeStart.main(Native Method)

@TinyChou

This comment has been minimized.

Copy link

TinyChou replied Nov 29, 2014

How about this issue?

time = 2014/11/28 07:34

PRODUCT = LT26ii_1266-9060

MODEL = LT26ii

SDK_INT = 15

java.lang.NullPointerException

at mobi.parchment.widget.adapterview.AdapterViewManager.getView(Unknown Source)

at mobi.parchment.widget.adapterview.listview.ListLayoutManager.getCell(Unknown Source)

at mobi.parchment.widget.adapterview.listview.ListLayoutManager.getCell(Unknown Source)

at mobi.parchment.widget.adapterview.LayoutManager.layoutCells(Unknown Source)

at mobi.parchment.widget.adapterview.LayoutManager.layout(Unknown Source)

at mobi.parchment.widget.adapterview.AbstractAdapterView.onLayout(Unknown Source)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1666)

at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1655)

at android.widget.LinearLayout.onLayout(LinearLayout.java:1431)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1666)

at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1655)

at android.widget.LinearLayout.onLayout(LinearLayout.java:1431)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.RelativeLayout.onLayout(RelativeLayout.java:930)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.FrameLayout.onLayout(FrameLayout.java:443)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1666)

at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1524)

at android.widget.LinearLayout.onLayout(LinearLayout.java:1429)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.widget.FrameLayout.onLayout(FrameLayout.java:443)

at android.view.View.layout(View.java:11444)

at android.view.ViewGroup.layout(ViewGroup.java:4331)

at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1489)

at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)

at android.os.Handler.dispatchMessage(Handler.java:99)

at android.os.Looper.loop(Looper.java:137)

at android.app.ActivityThread.main(ActivityThread.java:4441)

at java.lang.reflect.Method.invokeNative(Native Method)

at java.lang.reflect.Method.invoke(Method.java:511)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:823)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:590)

at dalvik.system.NativeStart.main(Native Method)

Please sign in to comment.