facebook / facebook/fresco

Set file Uri in SimpleDraweeView when used Context.MODE_PRIVATE

Open
#1,981 2 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Kotlin
Stars
17.2k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.