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

Activity with several fragment will freeze in android 5.0 device once open menu #754

Open
fuchaosz opened this issue Jun 14, 2016 · 1 comment

Comments

@fuchaosz
Copy link

In android 5.0 device, if an activity has serveral fragment and a slidingmenu, once open the menu,the activity view will not change or refresh, like been freezed,you can't change fragment or scroll the list.it will only happen in android 5.0 devices ,like huawei p8,
How to sovle this problem?
look at SlidingMenu.java on line 1005, change:
boolean layer = percentOpen > 0.0f && percentOpen < 1.0f;
into:
boolean layer = percentOpen >= 0.0f && percentOpen <= 1.0f;

for more detail ,such as bug demo ,please see my blog on csdn here:
http://blog.csdn.net/fuchaosz/article/details/51657984

中文:
在Android 5.0的机器上,如果一个Activity有多个Fragment,那么第一次打开SlidingMenu后,Activity界面就不能刷新了,也不能切换Fragment,解决的方法是,将SlidingMenu.java的1005行,由:
boolean layer = percentOpen > 0.0f && percentOpen < 1.0f;
改为:
boolean layer = percentOpen >= 0.0f && percentOpen <= 1.0f;

更多详情,已经bug示例请看我的csdn博客:
http://blog.csdn.net/fuchaosz/article/details/51657984

@wildish
Copy link

wildish commented Jul 8, 2016

good job

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