diff options
author | Nancy Chen <nancychen@google.com> | 2015-04-02 14:25:50 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2015-04-02 14:25:50 -0700 |
commit | 096413da7227636473410d5d86176ff02bc36ea7 (patch) | |
tree | 46989f17e4510bbfef6d3dc905d5d9874cb09739 /core/java/android/provider/VoicemailContract.java | |
parent | ad0eacb917e88e99cf0b4af5a178d15686746f49 (diff) | |
download | frameworks_base-096413da7227636473410d5d86176ff02bc36ea7.zip frameworks_base-096413da7227636473410d5d86176ff02bc36ea7.tar.gz frameworks_base-096413da7227636473410d5d86176ff02bc36ea7.tar.bz2 |
Include the source package in the voicemail URI.
This means that the source package can be determined without having to
query the database, thus making it easier to short circuit code on
voicemails that do not belong to a package.
Bug: 19236241
Change-Id: If9c3924a5365d5c3e87bff68609b5e7aee8eb218
Diffstat (limited to 'core/java/android/provider/VoicemailContract.java')
-rw-r--r-- | core/java/android/provider/VoicemailContract.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/provider/VoicemailContract.java b/core/java/android/provider/VoicemailContract.java index 0da4fd5..efbb3b8 100644 --- a/core/java/android/provider/VoicemailContract.java +++ b/core/java/android/provider/VoicemailContract.java @@ -258,7 +258,7 @@ public class VoicemailContract { public static Uri insert(Context context, Voicemail voicemail) { ContentResolver contentResolver = context.getContentResolver(); ContentValues contentValues = getContentValues(voicemail); - return contentResolver.insert(Voicemails.CONTENT_URI, contentValues); + return contentResolver.insert(buildSourceUri(context.getPackageName()), contentValues); } /** @@ -273,7 +273,7 @@ public class VoicemailContract { int count = voicemails.size(); for (int i = 0; i < count; i++) { ContentValues contentValues = getContentValues(voicemails.get(i)); - contentResolver.insert(Voicemails.CONTENT_URI, contentValues); + contentResolver.insert(buildSourceUri(context.getPackageName()), contentValues); } return count; } |