mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-06-11 05:00:46 +02:00
[Update] Fix update downloading from notification.
This commit is contained in:
@ -157,8 +157,10 @@ public class PermissionChecker {
|
||||
|
||||
public Intent intentApkInstall() {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
return new Intent("android.settings.MANAGE_UNKNOWN_APP_SOURCES",
|
||||
Intent intent = new Intent("android.settings.MANAGE_UNKNOWN_APP_SOURCES",
|
||||
Uri.parse("package:" + mContext.getPackageName()));
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
return intent;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user