Merge "Query without a subid uses the default subid" into oc-dev
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");
             }