|
@@ -87,10 +87,7 @@ class WatchContactProvider : ContentProvider() {
|
|
|
val dao = db.contactDao()
|
|
|
val id = ContentUris.parseId(uri)
|
|
|
val result = dao.delete(dao.queryById(id))
|
|
|
- context!!.contentResolver.notifyChange(
|
|
|
- ContentUris.withAppendedId(uri, id),
|
|
|
- null
|
|
|
- )
|
|
|
+ context!!.contentResolver.notifyChange(uri, null)
|
|
|
result
|
|
|
}
|
|
|
else -> 0
|
|
@@ -113,7 +110,7 @@ class WatchContactProvider : ContentProvider() {
|
|
|
val infoFin = dao.queryById(id)
|
|
|
infoFin.merge(info)
|
|
|
val result = dao.update(infoFin)
|
|
|
- context!!.contentResolver.notifyChange(ContentUris.withAppendedId(uri, id), null)
|
|
|
+ context!!.contentResolver.notifyChange(uri, null)
|
|
|
result
|
|
|
}
|
|
|
CONTACT_MULTI -> {
|