Closed xuxh6 closed 3 years ago
感谢给出的优化方案,因为最近在忙一些其他事情,您可以向仓库提Pull Request。Review 后会合并到主仓库。
-------- 原始信息 -------- 发件人: xuxh6 @.> 日期: 2021/9/17 10:27 (GMT+08:00) 收件人: zhpanvip/BannerViewPager @.> 抄送: Subscribed @.***> 主题: [zhpanvip/BannerViewPager] 在RecyclerView中使用,华为手机 会出现不自动滚动问题,问题已验证修复,待开发者修改 (#225)
BannerViewPager文件中 private Handler mHandler = new Handler(); 改成如下代码: private Handler mHandler = new Handler(Looper.getMainLooper()); 原因是华为手机会出现 运行在子线程中,导致Runnable中的run()方法不执行。 其他厂商手机都试了,不会出现这个问题。
― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/zhpanvip/BannerViewPager/issues/225, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEXPBI536BL2EBZ5BVU4ESDUCKRQJANCNFSM5EGANVGA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
BannerViewPager文件中 private Handler mHandler = new Handler(); 改成如下代码: private Handler mHandler = new Handler(Looper.getMainLooper()); 原因是华为手机会出现 运行在子线程中,导致Runnable中的run()方法不执行。 其他厂商手机都试了,不会出现这个问题。