The app crashes when using the "Delete" feature when deleting all images in the "LauncherActivity" menu
ahyar92 opened this issue · comments
ahyar92 commented
Expected behavior
Supposedly, when I use the delete feature to delete all images in the LauncherActivity menu, the app will not crash.
Actual behavior
When I go to the "LauncherActivity" menu and use the delete feature to delete all the images on the page, and when I continue to use the delete feature until all the images have been deleted, the application suddenly crashes.
How to reproduce
- Install and open the app
- Go to the "LauncherActivity" menu
- Next use the delete feature and delete all images, continue to use the delete feature do not stop until the image all on the page is erased, then you will see the application will crash.
- Device: Xiaomi Redmi 4X
- Operating system: Marshmallow, 6.0.1 mmb29m (CPU: Octa-core Max 1.9 GHz, RAM: 2 GB)
- Application Version: 1.7.0
Recording Of The Bug
Logcat
05-23 23:41:56.457 11483 11483 E AndroidRuntime: Process: com.marshalchen.ultimaterecyclerview.demo, PID: 11483
05-23 23:41:56.457 11483 11483 E AndroidRuntime: java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:0
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.support.v7.widget.RecyclerView$LayoutManager.addViewInt(RecyclerView.java:7048)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:7012)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:7000)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1428)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:578)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.support.v7.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:3211)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3067)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3518)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:598)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at com.android.internal.policy.DecorView.onLayout(DecorView.java:730)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2388)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2110)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1296)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6401)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:876)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:688)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:623)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:862)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:754)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.os.Looper.loop(Looper.java:163)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6361)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
```