carlos 3 жил өмнө
parent
commit
8c57385594

BIN
XPContactProvider.apk


+ 2 - 5
app/src/main/java/com/xplora/contactprovider/provider/WatchContactProvider.kt

@@ -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 -> {