Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
enzevalos_iphone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
enzevalos
enzevalos_iphone
Commits
356f64cb
Commit
356f64cb
authored
8 years ago
by
jakobsbode
Browse files
Options
Downloads
Patches
Plain Diff
show contacts, who are not in contact book in the fast-suggestions in sendView too
parent
5ebc1525
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
enzevalos_iphone/AddressHandler.swift
+15
-9
15 additions, 9 deletions
enzevalos_iphone/AddressHandler.swift
with
15 additions
and
9 deletions
enzevalos_iphone/AddressHandler.swift
+
15
−
9
View file @
356f64cb
...
...
@@ -96,15 +96,16 @@ class AddressHandler {
}
}
if
!
insertedEntry
{
var
addrType
:
UIImage
?
=
nil
if
address
.
label
.
label
==
"_$!<Work>!$_"
{
addrType
=
UIImage
(
named
:
"work2_white"
)
!
}
if
address
.
label
.
label
==
"_$!<Home>!$_"
{
addrType
=
UIImage
(
named
:
"home2_white"
)
!
}
if
let
cn
=
con
.
cnContact
{
var
addrType
:
UIImage
?
=
nil
if
address
.
label
.
label
==
"_$!<Work>!$_"
{
addrType
=
UIImage
(
named
:
"work2_white"
)
!
}
if
address
.
label
.
label
==
"_$!<Home>!$_"
{
addrType
=
UIImage
(
named
:
"home2_white"
)
!
}
var
color
=
cn
.
getColor
()
if
cn
.
thumbnailImageData
!=
nil
{
...
...
@@ -117,6 +118,11 @@ class AddressHandler {
list
.
append
(
entry
)
localInserted
.
append
(
address
.
mailAddress
)
}
else
{
var
entry
=
(
con
.
ezContact
.
getImageOrDefault
(),
con
.
ezContact
.
displayname
??
address
.
mailAddress
,
address
.
mailAddress
,
addrType
,
con
.
ezContact
.
getColor
())
list
.
append
(
entry
)
localInserted
.
append
(
address
.
mailAddress
)
}
}
}
...
...
@@ -136,7 +142,7 @@ class AddressHandler {
return
list
}
static
func
proveAddress
(
_
s
:
NSString
)
->
Bool
{
if
addresses
.
contains
((
s
as
String
)
.
lowercased
())
{
return
true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment