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) {