PrintHelperKitkat.java 文件源码

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

项目:boohee_v5.6 作者:
private Bitmap loadBitmap(Uri uri, Options o) throws FileNotFoundException {
    if (uri == null || this.mContext == null) {
        throw new IllegalArgumentException("bad argument to loadBitmap");
    }
    InputStream is = null;
    try {
        is = this.mContext.getContentResolver().openInputStream(uri);
        Bitmap decodeStream = BitmapFactory.decodeStream(is, null, o);
        if (is != null) {
            try {
                is.close();
            } catch (IOException t) {
                Log.w(LOG_TAG, "close fail ", t);
            }
        }
        return decodeStream;
    } catch (Throwable th) {
        if (is != null) {
            try {
                is.close();
            } catch (IOException t2) {
                Log.w(LOG_TAG, "close fail ", t2);
            }
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号