SuperImageView icon indicating copy to clipboard operation
SuperImageView copied to clipboard

Bug: choosing rounded corners on the sample causes a crash

Open AndroidDeveloperLB opened this issue 7 years ago • 0 comments

Tested on Pixel 2 with Android P.

The crash log:

2018-10-25 02:22:36.168 19882-19882/com.codeforvictory.android.superimageview.samples E/AndroidRuntime: FATAL EXCEPTION: main Process: com.codeforvictory.android.superimageview.samples, PID: 19882 android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class com.codeforvictory.android.superimageview.SuperImageView Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class com.codeforvictory.android.superimageview.SuperImageView Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:343) at android.view.LayoutInflater.createView(LayoutInflater.java:647) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730) at android.view.LayoutInflater.inflate(LayoutInflater.java:492) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at com.codeforvictory.superimageview.samples.superimageview.rounded_corners.ImagesRecyclerAdapter.onCreateViewHolder(ImagesRecyclerAdapter.java:27) at com.codeforvictory.superimageview.samples.superimageview.rounded_corners.ImagesRecyclerAdapter.onCreateViewHolder(ImagesRecyclerAdapter.java:15) at androidx.recyclerview.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:6794) at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5975) at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5858) at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5854) at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2230) at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1557) at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517) at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:612) at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924) at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:3641) at androidx.recyclerview.widget.RecyclerView.onLayout(RecyclerView.java:4194) at android.view.View.layout(View.java:20672) at android.view.ViewGroup.layout(ViewGroup.java:6194) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323) at android.widget.FrameLayout.onLayout(FrameLayout.java:261) at android.view.View.layout(View.java:20672) at android.view.ViewGroup.layout(ViewGroup.java:6194) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656) at android.widget.LinearLayout.onLayout(LinearLayout.java:1565) at android.view.View.layout(View.java:20672) at android.view.ViewGroup.layout(ViewGroup.java:6194) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323) at android.widget.FrameLayout.onLayout(FrameLayout.java:261) at android.view.View.layout(View.java:20672) at android.view.ViewGroup.layout(ViewGroup.java:6194) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656) at android.widget.LinearLayout.onLayout(LinearLayout.java:1565) at android.view.View.layout(View.java:20672) at android.view.ViewGroup.layout(ViewGroup.java:6194) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323) at android.widget.FrameLayout.onLayout(FrameLayout.java:261) at com.android.internal.policy.DecorView.onLayout(DecorView.java:753) at android.view.View.layout(View.java:20672) at android.view.ViewGroup.layout(ViewGroup.java:6194) at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2793) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2320) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1460) 2018-10-25 02:22:36.169 19882-19882/com.codeforvictory.android.superimageview.samples E/AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7184) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949) at android.view.Choreographer.doCallbacks(Choreographer.java:761) at android.view.Choreographer.doFrame(Choreographer.java:696) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) Caused by: java.lang.IllegalStateException: This can't be possible at com.codeforvictory.android.superimageview.roundedcorners.RoundedCornersImage.setup(RoundedCornersImage.java:115) at com.codeforvictory.android.superimageview.SuperImageView.setupRoundedCorners(SuperImageView.java:252) at com.codeforvictory.android.superimageview.SuperImageView.setup(SuperImageView.java:99) at com.codeforvictory.android.superimageview.SuperImageView.(SuperImageView.java:34) ... 60 more

AndroidDeveloperLB avatar Oct 24 '18 23:10 AndroidDeveloperLB