mockingbird

Results 10 comments of mockingbird

when support gradle build > 3.1.0 (build with D8)

@MichaelJokAr @JessYanCoding https://github.com/Tencent/tinker/issues/942#issuecomment-435680894 自己写了个十分简陋的方案 可以支持3.0+以上的分包,可以参考下

have the same problem. remote aar use support and fataar module set android.useAndroidX=true & android.enableJetifier=true, fataar module proguard minifyEnable=true, the output has obfuscate problem but compile sucess modify your demo...

在BaseCacheStuffer.Proxy 的prepareDrawing方法中对弹幕进行异步处理,完成后修改danmaku.measureResetFlag的值,然后invalidateDanmaku(danmaku, true); 在DanmakuRetainer里边,进行碰撞检测时,这条弹幕因为danmaku.measureResetFlag与 flags.MEASURE_RESET_FLAG不一致导致导致碰撞检测失败,造成弹幕追尾。 设置标志位 ![1](https://user-images.githubusercontent.com/12912067/32426850-236a97ea-c2f8-11e7-85f4-3ebcbc4fa5ef.png) DanmakuRetainer 碰撞检测 ![2 1](https://user-images.githubusercontent.com/12912067/32426851-2397baa4-c2f8-11e7-9157-87da3ff20900.png) DanmakuUtils碰撞检测具体逻辑 ![2](https://user-images.githubusercontent.com/12912067/32426852-23c36b86-c2f8-11e7-87df-ea9ca6d94022.png) R2LDanmaku具体实现 ![3](https://user-images.githubusercontent.com/12912067/32426854-23ed7a8e-c2f8-11e7-9716-ab8276354a70.png) 需要判断标志位,此时不一致也即判断碰撞失败 ![4](https://user-images.githubusercontent.com/12912067/32426855-2455f87a-c2f8-11e7-8ec4-1eb9bf5e26e2.png)

`可以把源码中getRectAtTime方法中的!isMeasure()替换为!( paintWidth > -1 && paintHeight > -1)`

priority=1修改代码碰撞检测逻辑 https://github.com/Bilibili/DanmakuFlameMaster/issues/337

当然这只能让弹幕尽在设置的其余行有空间展示时不重叠,如果设置行数展示不完弹幕还是会重叠,因为源码中priority=1的弹幕一定不会丢,此时必然会有重叠

DialogWrapper has a bug , submit a PR to fix

https://github.com/Tencent/tinker/issues/942#issuecomment-435680894 关注了很久都没有动静,自己写了个十分简陋的方案 可以支持3.0+以上的分包,但是功能很简单仅供参考