Commit 9bd55239 authored by clairehurst's avatar clairehurst 🌱 Committed by Pier Angelo Vendrame
Browse files

fixup! [android] Disable features and functionality

Bug 45118: Disable Mozilla VPN
parent 477c1cf3
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -589,7 +589,6 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity, Crash
            summarizeToolbarHighlightBinding,
            components.core.summarizationSettings,
            translationsAIControllableFeatureRegistrar,
            ipProtectionPrompter,
        )

        if (!isCustomTabIntent(intent)) {
+2 −2
Original line number Diff line number Diff line
@@ -263,7 +263,7 @@ fun MainMenu(
            )
        }

        if (showIPProtection) {
        if (false) {
            MenuGroup {
                IPProtectionMenuItem(
                    state = ipProtectionMenuState,
@@ -761,7 +761,7 @@ private fun MenuDialogPreview(
                showBanner = true,
                isDownloadHighlighted = true,
                webExtensionMenuCount = 1,
                showIPProtection = true,
                showIPProtection = false,
                ipProtectionMenuState = IPProtectionMenuState(),
                onMoreMenuClick = {},
                onCustomizeReaderViewMenuClick = {},
+0 −1
Original line number Diff line number Diff line
@@ -523,7 +523,6 @@ class HomeFragment : Fragment() {
        initReviewPromptBinding(view = view)
        initTabsCleanupFeature(view = view)
        initSnackbarBinding(view = view)
        initIpProtectionBindings(view = view)

        privacyNoticeBannerStore = PrivacyNoticeBannerStore(
            initialState = PrivacyNoticeBannerState(
+0 −6
Original line number Diff line number Diff line
@@ -357,12 +357,6 @@ class SecretSettingsFragment : PreferenceFragmentCompat(), SystemInsetsPaddedFra
            onPreferenceChangeListener = SharedPreferenceUpdater()
        }

        requirePreference<SwitchPreferenceCompat>(R.string.pref_key_enable_ip_protection).apply {
            isVisible = Config.channel.isNightlyOrDebug
            isChecked = settings.isIPProtectionEnabled
            onPreferenceChangeListener = SharedPreferenceUpdater()
        }

        requirePreference<SwitchPreferenceCompat>(R.string.pref_key_enable_import_passwords).apply {
            isVisible = Config.channel.isDebug
            isChecked = settings.importPasswordsFeatureFlagEnabled
+0 −8
Original line number Diff line number Diff line
@@ -428,13 +428,6 @@ class SettingsFragment : PreferenceFragmentCompat(), SystemInsetsPaddedFragment
                SettingsFragmentDirections.actionSettingsFragmentToHttpsOnlyFragment()
            }

            resources.getString(R.string.pref_key_ip_protection_settings) -> {
                Vpn.settingsPageTapped.record(Vpn.SettingsPageTappedExtra(entrypoint = "Settings"))
                SettingsFragmentDirections.actionSettingsFragmentToIpProtectionFragment(
                    entrypoint = FenixFxAEntryPoint.IPProtectionSettings,
                )
            }

            resources.getString(R.string.pref_key_tracking_protection_settings) -> {
                TrackingProtection.etpSettings.record(NoExtras())
                SettingsFragmentDirections.actionSettingsFragmentToTrackingProtectionFragment()
@@ -629,7 +622,6 @@ class SettingsFragment : PreferenceFragmentCompat(), SystemInsetsPaddedFragment
        )
        setupGeckoLogsPreference(settings)
        setupHttpsOnlyPreferences(settings)
        setupIPProtectionPreferences(components.ipProtection.store)
        setupNotificationPreference(
            NotificationManagerCompat.from(requireContext()).areNotificationsEnabled(),
        )
Loading