From 7d86ef6a46f0b5c7535a2bdfdcf9e86d529d280a Mon Sep 17 00:00:00 2001 From: Chumva Date: Tue, 22 May 2018 13:00:39 +0300 Subject: [PATCH] revert getUriForFile --- OsmAnd/src/net/osmand/AndroidUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/AndroidUtils.java b/OsmAnd/src/net/osmand/AndroidUtils.java index 51366c997f..f1b05985e4 100644 --- a/OsmAnd/src/net/osmand/AndroidUtils.java +++ b/OsmAnd/src/net/osmand/AndroidUtils.java @@ -112,7 +112,7 @@ public class AndroidUtils { } public static Uri getUriForFile(Context context, File file) { - return FileProvider.getUriForFile(context, "net.osmand.plus.fileprovider", file); + return FileProvider.getUriForFile(context, context.getPackageName() + ".fileprovider", file); } public static Spannable replaceCharsWithIcon(String text, Drawable icon, String[] chars) {