facebook/fresco

Set file Uri in SimpleDraweeView when used Context.MODE_PRIVATE

Open

#1,981 建立於 2017年12月2日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Java (17,072 star) (3,750 fork)batch import
enhancementgood first issue

描述

Description

Bug with add SimpleDraweeView object using setImageURI when Uri.fromFile and saved file use openFileOutput(fileName, Context.MODE_PRIVATE);

Context.MODE_PRIVATE makes the file inaccessible to other apps, but for fresco is problem to read and set file in SimpleDraweeView

SimpleDraweeView work only with Uri when FileOutputStream object - outputStream = new FileOutputStream(file);

Additional Information

compile 'com.facebook.fresco:fresco:1.5.0' compilesdkversion 25

貢獻者指南

Set file Uri in SimpleDraweeView when used Context.MODE_PRIVATE · facebook/fresco#1981 | Good First Issue