use of master.flame.danmaku.controller.DrawHandler in project DanmakuFlameMaster by Bilibili.
the class DanmakuView method stopDraw.
private synchronized void stopDraw() {
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();
}
}
Aggregations