Tencent / QMUI_Android

提高 Android UI 开发效率的 UI 库
http://qmuiteam.com/android
Other
14.46k stars 2.68k forks source link

滑动返回,滑动到一定程度(概率性),松开会闪退 #461

Closed kakarrot closed 5 years ago

kakarrot commented 5 years ago

下载最新 1.1.7 apk 运行

滑动返回,滑动到一定程度(概率性),松开会闪退

qfxl commented 5 years ago

我也遇到了,错误信息如下: Process: com.qmuiteam.qmuidemo, PID: 17968 java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. at android.view.ViewGroup.addViewInner(ViewGroup.java:4438) at android.view.ViewGroup.addView(ViewGroup.java:4274) at android.view.ViewGroup.addView(ViewGroup.java:4215) at com.qmuiteam.qmui.arch.QMUIFragment$2.onEdgeTouch(QMUIFragment.java:374) at com.qmuiteam.qmui.arch.SwipeBackLayout$ViewDragCallback.tryCaptureView(SwipeBackLayout.java:472) at android.support.v4.widget.ViewDragHelper.tryCaptureViewForDrag(ViewDragHelper.java:908) at android.support.v4.widget.ViewDragHelper.shouldInterceptTouchEvent(ViewDragHelper.java:984) at com.qmuiteam.qmui.arch.SwipeBackLayout.onInterceptTouchEvent(SwipeBackLayout.java:362) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2143) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2257) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2257) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2257) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2257) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2257) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2666) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2257) at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2745) at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1926) at android.app.Activity.dispatchTouchEvent(Activity.java:2808) at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:68) at com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2672) at android.view.View.dispatchPointerEvent(View.java:9646) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4743) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4601) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4106) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4159) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4125) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4271) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4133) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4328) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4106) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4159) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4125) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4133) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4106) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6560) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6534) at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6477) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6732) at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:328) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:5741) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789) at com.android.internal.os.Zy

ghost commented 5 years ago

最新的 1.1.7 apk 是有这个问题, 后来新版本好像是修复了,试试新版本

qfxl commented 5 years ago

最新的 1.1.7 apk 是有这个问题, 后来新版本好像是修复了,试试新版本

运行代码之后没有发现,看提交记录应该是修复了。