ImageWorker.java 文件源码

java
阅读 38 收藏 0 点赞 0 评论 0

项目:SuperSelector 作者:
/**
         * Once the image is processed, associates it to the imageView
         */
        @Override
        protected void onPostExecute(BitmapDrawable value) {
            //BEGIN_INCLUDE(complete_background_work)
            // if cancel was called on this task or the "exit early" flag is set then we're done
            if (isCancelled() || mExitTasksEarly) {
                value = null;
            }

            final ImageView imageView = getAttachedImageView();
            if (value != null && imageView != null) {
//                if (BuildConfig.DEBUG) {
//                    Log.d(TAG, "onPostExecute - setting bitmap");
//                }
                setImageDrawable(imageView, value);
            }
            //END_INCLUDE(complete_background_work)
        }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号