facebook/fresco

Set file Uri in SimpleDraweeView when used Context.MODE_PRIVATE

Open

#1,981 opened on 2017年12月2日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)Java (3,750 forks)batch import
enhancementgood first issue

Repository metrics

Stars
 (17,072 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド