Use existing okhttp client + package checks for web apk.

This commit is contained in:
Greyson Parrelli
2026-04-08 20:33:21 +00:00
committed by jeffrey-signal
parent d121f9402b
commit df406633ff
2 changed files with 4 additions and 2 deletions

View File

@@ -91,6 +91,8 @@ object ApkUpdateInstaller {
val packageInstaller: PackageInstaller = context.packageManager.packageInstaller
val sessionParams = PackageInstaller.SessionParams(PackageInstaller.SessionParams.MODE_FULL_INSTALL).apply {
setAppPackageName(context.packageName)
// At this point, we always want to set this if possible, since we've already prompted the user with our own notification when necessary.
// This lets us skip the system-generated notification.
if (Build.VERSION.SDK_INT >= 31) {