fixed fileprovider conflict with original minetest on android devices

This commit is contained in:
Looki2000 2023-03-04 23:14:47 +01:00
parent 58bada6236
commit a6ea6a1a62
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="net.minetest.minetest.fileprovider"
android:authorities="xyz.cubesoftware.sussycraft.fileprovider"
android:grantUriPermissions="true"
android:exported="false">
<meta-data

View File

@ -195,7 +195,7 @@ public class GameActivity extends NativeActivity {
return;
}
Uri fileUri = FileProvider.getUriForFile(this, "net.minetest.minetest.fileprovider", file);
Uri fileUri = FileProvider.getUriForFile(this, "xyz.cubesoftware.sussycraft.fileprovider", file);
Intent intent = new Intent(Intent.ACTION_SEND, fileUri);
intent.setDataAndType(fileUri, getContentResolver().getType(fileUri));