add nickname to the visible fields customizing dialog
This commit is contained in:
parent
85976af2b8
commit
041dc19856
|
@ -19,6 +19,7 @@ class ManageVisibleFieldsDialog(val activity: BaseSimpleActivity) {
|
||||||
put(SHOW_MIDDLE_NAME_FIELD, R.id.manage_visible_fields_middle_name)
|
put(SHOW_MIDDLE_NAME_FIELD, R.id.manage_visible_fields_middle_name)
|
||||||
put(SHOW_SURNAME_FIELD, R.id.manage_visible_fields_surname)
|
put(SHOW_SURNAME_FIELD, R.id.manage_visible_fields_surname)
|
||||||
put(SHOW_SUFFIX_FIELD, R.id.manage_visible_fields_suffix)
|
put(SHOW_SUFFIX_FIELD, R.id.manage_visible_fields_suffix)
|
||||||
|
put(SHOW_NICKNAME_FIELD, R.id.manage_visible_fields_nickname)
|
||||||
put(SHOW_PHONE_NUMBERS_FIELD, R.id.manage_visible_fields_phone_numbers)
|
put(SHOW_PHONE_NUMBERS_FIELD, R.id.manage_visible_fields_phone_numbers)
|
||||||
put(SHOW_EMAILS_FIELD, R.id.manage_visible_fields_emails)
|
put(SHOW_EMAILS_FIELD, R.id.manage_visible_fields_emails)
|
||||||
put(SHOW_ADDRESSES_FIELD, R.id.manage_visible_fields_addresses)
|
put(SHOW_ADDRESSES_FIELD, R.id.manage_visible_fields_addresses)
|
||||||
|
|
|
@ -104,6 +104,7 @@ const val SHOW_ORGANIZATION_FIELD = 1024
|
||||||
const val SHOW_GROUPS_FIELD = 2048
|
const val SHOW_GROUPS_FIELD = 2048
|
||||||
const val SHOW_CONTACT_SOURCE_FIELD = 4096
|
const val SHOW_CONTACT_SOURCE_FIELD = 4096
|
||||||
const val SHOW_WEBSITES_FIELD = 8192
|
const val SHOW_WEBSITES_FIELD = 8192
|
||||||
|
const val SHOW_NICKNAME_FIELD = 16384
|
||||||
|
|
||||||
const val DEFAULT_EMAIL_TYPE = CommonDataKinds.Email.TYPE_HOME
|
const val DEFAULT_EMAIL_TYPE = CommonDataKinds.Email.TYPE_HOME
|
||||||
const val DEFAULT_PHONE_NUMBER_TYPE = CommonDataKinds.Phone.TYPE_MOBILE
|
const val DEFAULT_PHONE_NUMBER_TYPE = CommonDataKinds.Phone.TYPE_MOBILE
|
||||||
|
|
|
@ -54,6 +54,14 @@
|
||||||
android:paddingTop="@dimen/activity_margin"
|
android:paddingTop="@dimen/activity_margin"
|
||||||
android:text="@string/suffix"/>
|
android:text="@string/suffix"/>
|
||||||
|
|
||||||
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
|
android:id="@+id/manage_visible_fields_nickname"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingBottom="@dimen/activity_margin"
|
||||||
|
android:paddingTop="@dimen/activity_margin"
|
||||||
|
android:text="@string/nickname"/>
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
android:id="@+id/manage_visible_fields_phone_numbers"
|
android:id="@+id/manage_visible_fields_phone_numbers"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
Loading…
Reference in New Issue