Commit 3c4b3ed6 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

AccountManager: Update contact default to categories

parent c5613b13
Pipeline #182710 passed with stage
in 5 minutes and 19 seconds
......@@ -52,7 +52,7 @@ class AccountSettings(
companion object {
const val CURRENT_VERSION = 10
const val CURRENT_VERSION = 11
const val KEY_SETTINGS_VERSION = "version"
const val KEY_USERNAME = "user_name"
......@@ -313,6 +313,11 @@ class AccountSettings(
}
@Suppress("unused","FunctionName")
private fun update_10_11() {
setGroupMethod(GroupMethod.CATEGORIES)
}
@Suppress("unused","FunctionName")
/**
* Task synchronization now handles alarms, categories, relations and unknown properties.
......
......@@ -74,6 +74,7 @@ class AccountDetailsFragment : Fragment() {
v.carddav.visibility = if (config.cardDAV != null) View.VISIBLE else View.GONE
if (settings.has(AccountSettings.KEY_CONTACT_GROUP_METHOD))
v.contactGroupMethod.isEnabled = false
v.contactGroupMethod.setSelection(1)
v.createAccount.setOnClickListener {
val name = model.name.value
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment