Search in sources :

Example 1 with DrawHandler

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();
    }
}
Also used : HandlerThread(android.os.HandlerThread) DrawHandler(master.flame.danmaku.controller.DrawHandler)

Aggregations

HandlerThread (android.os.HandlerThread)1 DrawHandler (master.flame.danmaku.controller.DrawHandler)1