Skip to content

add InsertContactIntentBuilder#110

Merged
anton-knyazev merged 20 commits intodevelopfrom
feature/insert_contact_intent_builder
Oct 9, 2020
Merged

add InsertContactIntentBuilder#110
anton-knyazev merged 20 commits intodevelopfrom
feature/insert_contact_intent_builder

Conversation

@Just-D-A
Copy link
Copy Markdown

@Just-D-A Just-D-A commented Oct 7, 2020

No description provided.

@anton-knyazev anton-knyazev changed the base branch from master to develop October 7, 2020 14:47
Comment thread .idea/vcs.xml
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="" vcs="Git" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

* @return This InsertContactIntentBuilder for method chaining
*/
fun fullMode(fullMode: String): InsertContactIntentBuilder {
this.fullMode = fullMode
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fun fullMode()

a2c.putExtra(ContactsContract.Intents.Insert.FULL_MODE, true);

fun phoneType(phoneType: String): InsertContactIntentBuilder {
this.phoneType = phoneType
return this
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

customPhoneType(phoneType: String)

* @return This InsertContactIntentBuilder for method chaining
*/
fun phoneType(customPhoneType: String): InsertContactIntentBuilder {
this.customPhoneType = customPhoneType
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phoneType = null

*/
fun phoneType(phoneType: PhoneType): InsertContactIntentBuilder {
this.phoneType = phoneType
return this
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

customPhoneType = null

}

if (phoneIsPrimary) {
putExtra(PHONE_ISPRIMARY, phoneIsPrimary)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

проверить

@anton-knyazev anton-knyazev merged commit 293eaf6 into develop Oct 9, 2020
@anton-knyazev anton-knyazev deleted the feature/insert_contact_intent_builder branch October 9, 2020 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants