-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash Scrolling #7
Comments
Hi! Solved adding the adapter inside Fragment. I was using AppCompatActivity to show the list, and when using Activity crash when scroll down. Regards |
Thanks @albetoetecnia anyway I will have a look. |
Ok @xenione, sometime is crashing with fragment...I can't reproduce with your sample. If I see anything, I will get back to you |
Hi @xenione, Only occurs if the application goes to onStop state. The first time created works, but if the activity enter in onStop, if wake up again crash cropInLimits. All data is null and initialize again the list, but it crash always Any idea? |
Hi @xenione reproduced on your example using compileSdkVersion 25 Here the build.gradle(Module: app)
|
@xenione with compileSdkVersion 24 is not working. |
I can t reproduce it. Test it compilling sdk version sdk 25 . Could you attach device info. Thanks |
Hi @xenione !!! Nexus 5, Android 6.0.1 Set up more than 10 items to the list, change layout to Swing Swipe or other and try to scroll, 100% crash. ` public static List getAlbum() {
Regards!!! |
I can' t reproduce issue even if I try to reproduce scenario android version, device and grow the list up to 100 items, show more than 10 items per screen. the Issue is quite spooky. because anchors are proper initialize every time the layout is inflated. |
For me is really easy to reproduce, I've only had changed versions of gradle and run the application Video: |
I got it!!! |
Thanks @albetoetecnia . Library will be update soon. |
Great! @xenione |
@xenione can I update via gradle?? |
apply changes into your local copy is already gradle updated |
I am still having this crash. Gradle file: @xenione What would be the action to solve this crash? |
I think you dont't upgrade version ensureInsideBounds() is not on line 78 any more . |
@xenione Can you please guide me which version I should use? Is this the correct version or should I use github library and add it as module? |
Hi Xenione,
I'm getting this error when try to show more items than 4 in a list with Both buttons (Right and Left)
The app crash when scroll down: 'int com.xenione.libs.swipemaker.Anchors.cropInLimits(int)' on a null object reference
FATAL EXCEPTION: main Process: com.test, PID: 24047 java.lang.NullPointerException: Attempt to invoke virtual method 'int com.xenione.libs.swipemaker.Anchors.cropInLimits(int)' on a null object reference at com.xenione.libs.swipemaker.Position.cropInLimits(Position.java:63) at com.xenione.libs.swipemaker.orientation.OrientationStrategy.ensureInsideBounds(OrientationStrategy.java:78) at com.xenione.libs.swipemaker.orientation.OrientationStrategy.translateTo(OrientationStrategy.java:57) at com.xenione.libs.swipemaker.SwipeLayout.translateTo(SwipeLayout.java:103) at com.xenione.libs.swipemaker.AbsCoordinatorLayout$1.run(AbsCoordinatorLayout.java:20) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
The text was updated successfully, but these errors were encountered: