Skip to content
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

弹出时和其他动画抛异常 #138

Closed
Joslyn-Chen opened this issue Jan 17, 2019 · 4 comments
Closed

弹出时和其他动画抛异常 #138

Joslyn-Chen opened this issue Jan 17, 2019 · 4 comments

Comments

@Joslyn-Chen
Copy link

Joslyn-Chen commented Jan 17, 2019

  • 系统版本:8.0.0
  • 库版本:2.1.7
  • 问题描述/重现步骤:当执行添加购物车动画(一个抛物线)后,再点击弹出就没反应了。
  • 问题代码/截图:mShoppingCarPopup.showPopupWindow();
  • 报错信息:
    android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7ffffffe at android.content.res.ResourcesImpl.getResourceEntryName(ResourcesImpl.java:271) at android.content.res.Resources.getResourceEntryName(Resources.java:2006) at razerdp.util.PopupUiUtils.checkHasNavigationBar(PopupUiUtils.java:71) at razerdp.util.PopupUiUtils.getNavigationBarHeight(PopupUiUtils.java:36) at razerdp.util.PopupUiUtils.getScreenHeightCompat(PopupUiUtils.java:94) at razerdp.basepopup.BasePopupWindow.getScreenHeight(BasePopupWindow.java:2038) at razerdp.basepopup.BasePopupWindow.onCalculateOffsetAdjust(BasePopupWindow.java:1059) at razerdp.basepopup.BasePopupWindow.calculateOffset(BasePopupWindow.java:974) at razerdp.basepopup.BasePopupWindow.tryToShowPopup(BasePopupWindow.java:818) at razerdp.basepopup.BasePopupWindow.showPopupWindow(BasePopupWindow.java:699) at com.jfb.jht.popup.ShopShoppingCarPopup.showPopupWindow(ShopShoppingCarPopup.java:60) at com.jfb.jht.activity.ShopActivity.showShoppingCar(ShopActivity.java:286) at com.jfb.jht.activity.ShopActivity.onViewClicked(ShopActivity.java:345) at com.jfb.jht.activity.ShopActivity_ViewBinding$6.doClick(ShopActivity_ViewBinding.java:119) at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22) at android.view.View.performClick(View.java:6266) at android.view.View$PerformClick.run(View.java:24730) at android.os.Handler.handleCallback(Handler.java:793) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:173) at android.app.ActivityThread.main(ActivityThread.java:6698) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)

@razerdp
Copy link
Owner

razerdp commented Jan 17, 2019

oh....估计是某个id找不到resourceentry,,不过这理论上不应该的- -你是不是decorView添加过什么?

@razerdp razerdp reopened this Jan 17, 2019
@razerdp
Copy link
Owner

razerdp commented Jan 17, 2019

这个问题您可以暂时更新到【candy】的2.1.8-alpha,里面做了优化

@Joslyn-Chen
Copy link
Author

@razerdp 额,是的,在decorView里添加了一个图片,后头我把图片移除后就正常了

@razerdp
Copy link
Owner

razerdp commented Jan 17, 2019

因为会去搜索相关的id是否符合底部状态栏(适配全面屏),你的图片这个可能是找不到的,2.1.8-alpha已经针对您的这种情况修复了。。您可以选择更新到candy或者等以后推出release后更新

@razerdp razerdp closed this as completed Jan 21, 2019
razerdp added a commit that referenced this issue Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants