use correct URL to notify sms provider changes
am: 4bf017861b
Change-Id: I2bcc299e3f911ee74ea42a5cf0e69be8519c387d
diff --git a/src/com/android/providers/telephony/SmsProvider.java b/src/com/android/providers/telephony/SmsProvider.java
index da8ad50..eca18a6 100644
--- a/src/com/android/providers/telephony/SmsProvider.java
+++ b/src/com/android/providers/telephony/SmsProvider.java
@@ -632,8 +632,12 @@
db.insert(TABLE_WORDS, Telephony.MmsSms.WordsTable.INDEXED_TEXT, cv);
}
if (rowID > 0) {
- Uri uri = Uri.parse("content://" + table + "/" + rowID);
-
+ Uri uri;
+ if (table == TABLE_SMS) {
+ uri = Uri.withAppendedPath(url, "/" + rowID);
+ } else {
+ uri = Uri.withAppendedPath(url, "/" + table + "/" + rowID );
+ }
if (Log.isLoggable(TAG, Log.VERBOSE)) {
Log.d(TAG, "insert " + uri + " succeeded");
}