Remove synthetic view references from 'AccountSettingsActivity'
@@ -15,7 +15,6 @@ import com.fsck.k9.ui.fragmentTransaction
import com.fsck.k9.ui.fragmentTransactionWithBackStack
import com.fsck.k9.ui.observe
import com.fsck.k9.ui.observeNotNull
-import kotlinx.android.synthetic.main.activity_account_settings.*
import org.koin.androidx.viewmodel.ext.android.viewModel
import timber.log.Timber
@@ -25,10 +24,14 @@ class AccountSettingsActivity : K9Activity(), OnPreferenceStartScreenCallback {
private var startScreenKey: String? = null
private var fragmentAdded = false
+ private lateinit var accountSpinner: AccountSelectionSpinner
+
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setLayout(R.layout.activity_account_settings)
+ accountSpinner = findViewById(R.id.accountSpinner)
+
initializeActionBar()
if (!decodeArguments()) {
