Have get a problem: receive multi surfaceChanged callback with SurfaceView.
This problem have trouble us for a long time. finally, i found the reason is:
.addCallback(mCallBack);
This method can be call for many times. so you must call:
removeCallback(mCallBack);
Hope this can be help for you.

本文解决了在使用SurfaceView时接收到多次surfaceChanged回调的问题。通过深入分析发现,多次添加回调是导致该问题的原因。文章提供了具体的解决方案:在重新添加回调前先移除已存在的回调。
190

被折叠的 条评论
为什么被折叠?



