yuyashuai / FrameAnimation

High-Performance Frame Animation Library For Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

java.lang.InterruptedException导致动画提前结束

hxmars opened this issue · comments

    dispatcherThread = thread(start = true, name = "FA-DispatcherThread") {
        try {
            while (state == WORKING && !Thread.currentThread().isInterrupted) {
                decodeBitmap()
            }
        } catch (e: InterruptedException) {
            Log.e("test", "BitmapPoolImp  error=" + e.toString());
            //java.lang.InterruptedException这里会有异常,导致动画提前结束
            Thread.currentThread().interrupt()
        }
        clearAndStop()
    }

2.3.5已更新