fun PhoneFeature.shouldBeVisible( sitePermissions: SitePermissions?, settings: Settings, ): Boolean { // We have to check if the site have a site permission exception, // if it doesn't the feature shouldn't be visible return if (sitePermissions == null) { false } else { getStatus(sitePermissions, settings) != SitePermissions.Status.NO_DECISION } }
Common [PhoneFeature] extensions used for **quicksettings**. Whether the website permission associated with this [PhoneFeature] should be shown to the user.