Skip to content

Commit

Permalink
修复有些机型上安装后点击打开回到桌面的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
FengChenSunshine committed Jul 5, 2019
1 parent f815567 commit 4774028
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ ext {
, versionName_dev : "dev0.0.1"
, versionCode_beta : 1
, versionName_beta : "beta0.0.1"
, versionCode_release: 4
, versionName_release: "v1.0.3"
, versionCode_release: 5
, versionName_release: "v1.0.4"
]
library = [
junit : "junit:junit:4.12",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static Intent getInstallAppIntent(@NonNull Context context, @NonNull File file,
}
//API24 Android7.0以上需要添加权限.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
}
intent.setDataAndType(contentUri, type);
return intent;
Expand Down

0 comments on commit 4774028

Please sign in to comment.