diff options
author | Debashish Chatterjee <debashishc@google.com> | 2011-08-11 11:47:32 +0100 |
---|---|---|
committer | Debashish Chatterjee <debashishc@google.com> | 2011-08-11 11:47:32 +0100 |
commit | 3ae32e20bc3f7a278471475efa300b6544b1112e (patch) | |
tree | a912278676d1469d908badf7ddf75c3d1b2ba005 /src/com/android/providers/contacts/VoicemailContentTable.java | |
parent | 2e757d904e62dbf5bc0b028626fa9319ccc38c45 (diff) | |
download | packages_providers_ContactsProvider-3ae32e20bc3f7a278471475efa300b6544b1112e.zip packages_providers_ContactsProvider-3ae32e20bc3f7a278471475efa300b6544b1112e.tar.gz packages_providers_ContactsProvider-3ae32e20bc3f7a278471475efa300b6544b1112e.tar.bz2 |
Voicemail provider: Don't automatically set HAS_CONTENT field.
It is best to let the content owner set this field when it is finished
writing the content into the file.
Another change will modify the voicemailproviderdemo app to set this
field in the app.
Bug: 5147190
Change-Id: I93e4b467acdefe339fa70dd751ea05f195c32e71
Diffstat (limited to 'src/com/android/providers/contacts/VoicemailContentTable.java')
-rw-r--r-- | src/com/android/providers/contacts/VoicemailContentTable.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/com/android/providers/contacts/VoicemailContentTable.java b/src/com/android/providers/contacts/VoicemailContentTable.java index ce2bc51..b4356cf 100644 --- a/src/com/android/providers/contacts/VoicemailContentTable.java +++ b/src/com/android/providers/contacts/VoicemailContentTable.java @@ -238,14 +238,7 @@ public class VoicemailContentTable implements VoicemailTable.Delegate { @Override public ParcelFileDescriptor openFile(UriData uriData, String mode) throws FileNotFoundException { - ParcelFileDescriptor fileDescriptor = mDelegateHelper.openDataFile(uriData, mode); - // If the open succeeded, then update the has_content bit in the table. - if (mode.contains("w")) { - ContentValues contentValues = new ContentValues(); - contentValues.put(Voicemails.HAS_CONTENT, 1); - update(uriData, contentValues, null, null); - } - return fileDescriptor; + return mDelegateHelper.openDataFile(uriData, mode); } /** Creates a clause to restrict the selection to only voicemail call type.*/ |