Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
3c03a49904
2 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>
|
||||
<application
|
||||
android:icon="@mipmap/icon_nightly"
|
||||
tools:replace="android:icon">
|
||||
|
|
|
@ -110,6 +110,7 @@ public class ContributionVersionActivity extends OsmandListActivity {
|
|||
} else if(operationId == INSTALL_BUILD){
|
||||
if(currentSelectedBuild != null){
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||
intent.setDataAndType(Uri.fromFile(pathToDownload), "application/vnd.android.package-archive");
|
||||
startActivityForResult(intent, ACTIVITY_TO_INSTALL);
|
||||
updateInstalledApp(false, currentSelectedBuild.date);
|
||||
|
|
Loading…
Reference in a new issue