Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 470a4a86 authored by Chaohui Wang's avatar Chaohui Wang
Browse files

Set InstallUnknownAppsListModel override check

Set switchifBlockedByAdminOverrideCheckedValueTo = false

Since the user actually not allowed to install unknown apps when the
restrictions are enforced, we should display unchecked status.

Fix: 380205192
Flag: EXEMPT bug fix
Test: manual - on Install unknown apps
Change-Id: Ia2b2b6bce8b3b37f153e0c91cbeaf69486501407
parent d5d59630
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ class InstallUnknownAppsListModel(private val context: Context) :
            UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES,
            UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES_GLOBALLY,
        )
    override val switchifBlockedByAdminOverrideCheckedValueTo = false
    override val enhancedConfirmationKey: String = AppOpsManager.OPSTR_REQUEST_INSTALL_PACKAGES

    override fun transformItem(app: ApplicationInfo) =