Merge "use correct URL to notify sms provider changes" am: 0dec095101
am: 8f1a4b5d88
Change-Id: I575eb9fdc15251abae7bd3af1ff1d1f67308cd18
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");
}