forked from upstream-mirrors/quik
Split contacts to new screen, allow attaching multiple photos
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user