diff --git a/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java b/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java index 19e48f9bf5..e875cbdf42 100644 --- a/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java @@ -3,6 +3,7 @@ package net.osmand.plus.activities; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.Intent; +import android.net.Uri; import android.os.Bundle; import android.support.v7.app.AlertDialog; import android.view.LayoutInflater; @@ -110,7 +111,7 @@ public class ContributionVersionActivity extends OsmandListActivity { if(currentSelectedBuild != null){ Intent intent = new Intent(Intent.ACTION_VIEW); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - intent.setDataAndType(AndroidUtils.getUriForFile(getMyApplication(), pathToDownload), "application/vnd.android.package-archive"); + intent.setDataAndType(Uri.fromFile(pathToDownload), "application/vnd.android.package-archive"); startActivityForResult(intent, ACTIVITY_TO_INSTALL); updateInstalledApp(false, currentSelectedBuild.date); }