Skip to content

Commit cb1888d

Browse files
committed
fixed fileprovider
1 parent daab068 commit cb1888d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

realm-browser/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<application>
66
<provider
77
android:name=".helper.FileProvider"
8-
android:authorities="${applicationId}"
8+
android:authorities="${applicationId}.share"
99
android:exported="false"
1010
android:grantUriPermissions="true">
1111
<meta-data

realm-browser/src/main/java/de/jonasrottmann/realmbrowser/models/view/ModelsActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public void attachPresenter(@Nullable ModelsContract.Presenter presenter) {
161161

162162
@Override
163163
public void presentShareDialog(@NonNull String path) {
164-
Uri contentUri = FileProvider.getUriForFile(this, "de.jonasrottmann.realmbrowser", new File(path));
164+
Uri contentUri = FileProvider.getUriForFile(this, String.format("%s.share", this.getPackageName()), new File(path));
165165
Intent intentShareFile = new Intent(Intent.ACTION_SEND);
166166
intentShareFile.setType("application/*");
167167
intentShareFile.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);

0 commit comments

Comments
 (0)