DanmakuFlameMaster
DanmakuFlameMaster copied to clipboard
弹幕上万之后 ,release时 容易ANR
试了下demo 也会发生ANR
遇到同样的问题。 private synchronized void stopDraw() { if (this.handler == null) { return; } DrawHandler handler = this.handler; this.handler = null; unlockCanvasAndPost(); if (handler != null) { handler.quit(); } HandlerThread handlerThread = this.mHandlerThread; mHandlerThread = null; if (handlerThread != null) { try { handlerThread.join(); // 报错定位 } catch (InterruptedException e) { e.printStackTrace(); } handlerThread.quit(); } }