Skip to content

Commit

Permalink
更改provider命名
Browse files Browse the repository at this point in the history
  • Loading branch information
AnliaLee committed Jun 25, 2018
1 parent b57a346 commit 6c13910
Show file tree
Hide file tree
Showing 14 changed files with 85 additions and 46 deletions.
Binary file modified .gradle/4.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/4.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/4.1/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/4.1/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file modified .gradle/4.1/javaCompile/jarAnalysis.bin
Binary file not shown.
Binary file modified .gradle/4.1/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified .gradle/4.1/javaCompile/taskHistory.bin
Binary file not shown.
Binary file modified .gradle/4.1/javaCompile/taskJars.bin
Binary file not shown.
Binary file modified .gradle/4.1/taskHistory/fileSnapshots.bin
Binary file not shown.
Binary file modified .gradle/4.1/taskHistory/taskHistory.bin
Binary file not shown.
Binary file modified .gradle/4.1/taskHistory/taskHistory.lock
Binary file not shown.
127 changes: 83 additions & 44 deletions .idea/workspace.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion library/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"
android:authorities="${applicationId}.factory.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static Uri GetFileUri(Context context, File file){
* 7.0 调用系统相机拍照不再允许使用Uri方式,应该替换为FileProvider
* 并且这样可以解决MIUI系统上拍照返回size为0的情况
*/
return FileProvider.getUriForFile(context, context.getApplicationContext().getPackageName() + ".provider", file);
return FileProvider.getUriForFile(context, context.getApplicationContext().getPackageName() + ".factory.provider", file);
}
}

Expand Down

0 comments on commit 6c13910

Please sign in to comment.