Skip to content

Commit

Permalink
remove launch on windows and mac
Browse files Browse the repository at this point in the history
  • Loading branch information
mikescamell committed Nov 29, 2024
1 parent c3ddb0e commit 1421942
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,11 @@ import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchEmailProte
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchFeedback
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchFireButtonScreen
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchGeneralSettingsScreen
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchMacOs
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchPermissionsScreen
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchPproUnifiedFeedback
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchPrivateSearchWebPage
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchSyncSettings
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchWebTrackingProtectionScreen
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchWindows
import com.duckduckgo.app.statistics.pixels.Pixel
import com.duckduckgo.app.statistics.pixels.Pixel.PixelType.Daily
import com.duckduckgo.app.webtrackingprotection.WebTrackingProtectionScreenNoParams
Expand All @@ -79,15 +77,13 @@ import com.duckduckgo.common.ui.viewbinding.viewBinding
import com.duckduckgo.common.utils.plugins.PluginPoint
import com.duckduckgo.di.scopes.ActivityScope
import com.duckduckgo.internal.features.api.InternalFeaturePlugin
import com.duckduckgo.macos.api.MacOsScreenWithEmptyParams
import com.duckduckgo.mobile.android.app.tracking.ui.AppTrackingProtectionScreens.AppTrackerActivityWithEmptyParams
import com.duckduckgo.mobile.android.app.tracking.ui.AppTrackingProtectionScreens.AppTrackerOnboardingActivityWithEmptyParamsParams
import com.duckduckgo.navigation.api.GlobalActivityStarter
import com.duckduckgo.settings.api.DuckPlayerSettingsPlugin
import com.duckduckgo.settings.api.ProSettingsPlugin
import com.duckduckgo.subscriptions.api.PrivacyProFeedbackScreens.GeneralPrivacyProFeedbackScreenNoParams
import com.duckduckgo.sync.api.SyncActivityWithEmptyParams
import com.duckduckgo.windows.api.ui.WindowsScreenWithEmptyParams
import com.google.android.material.snackbar.Snackbar
import javax.inject.Inject
import kotlinx.coroutines.flow.distinctUntilChanged
Expand Down Expand Up @@ -315,8 +311,6 @@ class NewSettingsActivity : DuckDuckGoActivity() {
is LaunchEmailProtection -> launchEmailProtectionScreen(it.url)
is LaunchEmailProtectionNotSupported -> launchEmailProtectionNotSupported()
is LaunchAddHomeScreenWidget -> launchAddHomeScreenWidget()
is LaunchMacOs -> launchMacOsScreen()
is LaunchWindows -> launchWindowsScreen()
is LaunchSyncSettings -> launchSyncSettings()
is LaunchPrivateSearchWebPage -> launchPrivateSearchScreen()
is LaunchWebTrackingProtectionScreen -> launchWebTrackingProtectionScreen()
Expand Down Expand Up @@ -372,16 +366,6 @@ class NewSettingsActivity : DuckDuckGoActivity() {
globalActivityStarter.start(this, EmailProtectionUnsupportedScreenNoParams, options)
}

private fun launchMacOsScreen() {
val options = ActivityOptions.makeSceneTransitionAnimation(this).toBundle()
globalActivityStarter.start(this, MacOsScreenWithEmptyParams, options)
}

private fun launchWindowsScreen() {
val options = ActivityOptions.makeSceneTransitionAnimation(this).toBundle()
globalActivityStarter.start(this, WindowsScreenWithEmptyParams, options)
}

private fun launchSyncSettings() {
val options = ActivityOptions.makeSceneTransitionAnimation(this).toBundle()
globalActivityStarter.start(this, SyncActivityWithEmptyParams, options)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@ import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_DEFAULT_BROWSER_PRESSED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_EMAIL_PROTECTION_PRESSED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_FIRE_BUTTON_PRESSED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_GENERAL_PRESSED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_MAC_APP_PRESSED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_OPENED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_PERMISSIONS_PRESSED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_PRIVATE_SEARCH_PRESSED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_SYNC_PRESSED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_WEB_TRACKING_PROTECTION_PRESSED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_WINDOWS_APP_PRESSED
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchAboutScreen
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchAccessibilitySettings
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchAddHomeScreenWidget
Expand All @@ -55,13 +53,11 @@ import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchEmailProte
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchFeedback
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchFireButtonScreen
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchGeneralSettingsScreen
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchMacOs
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchPermissionsScreen
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchPproUnifiedFeedback
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchPrivateSearchWebPage
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchSyncSettings
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchWebTrackingProtectionScreen
import com.duckduckgo.app.settings.NewSettingsViewModel.Command.LaunchWindows
import com.duckduckgo.app.statistics.pixels.Pixel
import com.duckduckgo.autoconsent.api.Autoconsent
import com.duckduckgo.autofill.api.AutofillCapabilityChecker
Expand Down Expand Up @@ -128,8 +124,6 @@ class NewSettingsViewModel @Inject constructor(
data object LaunchAddHomeScreenWidget : Command()
data object LaunchAppTPTrackersScreen : Command()
data object LaunchAppTPOnboarding : Command()
data object LaunchMacOs : Command()
data object LaunchWindows : Command()
data object LaunchSyncSettings : Command()
data object LaunchPrivateSearchWebPage : Command()
data object LaunchWebTrackingProtectionScreen : Command()
Expand Down

0 comments on commit 1421942

Please sign in to comment.