fixing the contacts provider token type
This commit is contained in:
parent
502e50889e
commit
09e6c15f70
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class MyContactsContentProvider {
|
|||
val phoneNumbersToken = object : TypeToken<ArrayList<PhoneNumber>>() {}.type
|
||||
val phoneNumbers = Gson().fromJson<ArrayList<PhoneNumber>>(phoneNumbersJson, phoneNumbersToken) ?: ArrayList()
|
||||
|
||||
val stringsToken = object : TypeToken<ArrayList<PhoneNumber>>() {}.type
|
||||
val stringsToken = object : TypeToken<ArrayList<String>>() {}.type
|
||||
val birthdays = Gson().fromJson<ArrayList<String>>(birthdaysJson, stringsToken) ?: ArrayList()
|
||||
val anniversaries = Gson().fromJson<ArrayList<String>>(anniversariesJson, stringsToken) ?: ArrayList()
|
||||
|
||||
|
|
Loading…
Reference in a new issue