Split contacts to new screen, allow attaching multiple photos

This commit is contained in:
moezbhatti
2019-11-17 01:17:01 -05:00
committed by Moez Bhatti
parent af2e550ea4
commit 8d43d60e56
16 changed files with 594 additions and 251 deletions
@@ -73,6 +73,15 @@ class ContactRepositoryImpl @Inject constructor(
.findAll()
}
override fun getUnmanagedContact(lookupKey: String): Contact? {
return Realm.getDefaultInstance().use { realm ->
realm.where(Contact::class.java)
.equalTo("lookupKey", lookupKey)
.findFirst()
?.let(realm::copyFromRealm)
}
}
override fun getUnmanagedContacts(starred: Boolean): Observable<List<Contact>> {
val realm = Realm.getDefaultInstance()