From 1e1bce79b4d891c71f43447c78a1f59bcbdec7c2 Mon Sep 17 00:00:00 2001 From: vincent Bourgmayer Date: Tue, 21 Feb 2023 08:59:34 +0100 Subject: [PATCH 1/9] remove import settings button from wizard_setup.xml and activity --- .../com/fsck/k9/activity/setup/AccountSetupBasics.kt | 10 ---------- app/ui/legacy/src/main/res/layout/wizard_setup.xml | 9 --------- 2 files changed, 19 deletions(-) diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/activity/setup/AccountSetupBasics.kt b/app/ui/legacy/src/main/java/com/fsck/k9/activity/setup/AccountSetupBasics.kt index 3e31c8ed4a..4219a7fb8b 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/activity/setup/AccountSetupBasics.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/activity/setup/AccountSetupBasics.kt @@ -67,7 +67,6 @@ class AccountSetupBasics : K9Activity() { private lateinit var advancedOptionsContainer: View private lateinit var nextButton: Button private lateinit var manualSetupButton: Button - private lateinit var importSettingsButton: Button private lateinit var allowClientCertificateView: ViewGroup private var uiState = UiState.EMAIL_ADDRESS_ONLY @@ -88,10 +87,7 @@ class AccountSetupBasics : K9Activity() { advancedOptionsContainer = findViewById(R.id.foldable_advanced_options) nextButton = findViewById(R.id.next) manualSetupButton = findViewById(R.id.manual_setup) - importSettingsButton = findViewById(R.id.import_settings) - manualSetupButton.setOnClickListener { onManualSetup() } - importSettingsButton.setOnClickListener { onImportSettings() } } override fun onPostCreate(savedInstanceState: Bundle?) { @@ -339,12 +335,6 @@ class AccountSetupBasics : K9Activity() { AccountSetupAccountType.actionSelectAccountType(this, account, makeDefault = false, initialAccountSettings) } - private fun onImportSettings() { - val intent = Intent(this, AccountSetupImportSettings::class.java) - startActivity(intent) - finish() - } - private fun initAccount(email: String): Account { val account = this.account ?: createAccount().also { this.account = it } diff --git a/app/ui/legacy/src/main/res/layout/wizard_setup.xml b/app/ui/legacy/src/main/res/layout/wizard_setup.xml index 570c56ad41..199c3d55df 100644 --- a/app/ui/legacy/src/main/res/layout/wizard_setup.xml +++ b/app/ui/legacy/src/main/res/layout/wizard_setup.xml @@ -22,15 +22,6 @@ android:background="?selectableItemBackground" android:text="@string/account_setup_basics_manual_setup_action" /> -