facebook/fresco

Set file Uri in SimpleDraweeView when used Context.MODE_PRIVATE

開放

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

 (2 則留言) (0 個反應) (0 位負責人)Java (3,750 個分叉)batch import
enhancementgood first issue

倉庫指標

星標
 (17,072 顆星)
PR 合併指標
 (30 天內沒有已合併 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

貢獻者指南