diff options
author | Ye Wen <ywen@google.com> | 2014-07-29 10:42:25 -0700 |
---|---|---|
committer | Ye Wen <ywen@google.com> | 2014-07-30 12:57:10 -0700 |
commit | a3dbd1087dfad0cacdb274420ec70505e236ad42 (patch) | |
tree | 6daa92cb1283dcb46bc7643231d02baeccefb488 /services/core/java/com/android/server/MmsServiceBroker.java | |
parent | f62af27846b49dde99f3a665ad83696e37e1833b (diff) | |
download | frameworks_base-a3dbd1087dfad0cacdb274420ec70505e236ad42.zip frameworks_base-a3dbd1087dfad0cacdb274420ec70505e236ad42.tar.gz frameworks_base-a3dbd1087dfad0cacdb274420ec70505e236ad42.tar.bz2 |
Move archived column from pdu/sms to threads (1/4)
Also add API to archive a conversation
Change-Id: Ib7daf6e0c3205c3c084406800c9c5bf054e1ca40
Diffstat (limited to 'services/core/java/com/android/server/MmsServiceBroker.java')
-rw-r--r-- | services/core/java/com/android/server/MmsServiceBroker.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/MmsServiceBroker.java b/services/core/java/com/android/server/MmsServiceBroker.java index 616b670..2fad73e 100644 --- a/services/core/java/com/android/server/MmsServiceBroker.java +++ b/services/core/java/com/android/server/MmsServiceBroker.java @@ -326,6 +326,15 @@ public class MmsServiceBroker extends SystemService { } @Override + public boolean archiveStoredConversation(String callingPkg, long conversationId, + boolean archived) throws RemoteException { + mContext.enforceCallingPermission(Manifest.permission.WRITE_SMS, + "Update SMS/MMS message"); + return getServiceGuarded() + .archiveStoredConversation(callingPkg, conversationId, archived); + } + + @Override public Uri addTextMessageDraft(String callingPkg, String address, String text) throws RemoteException { mContext.enforceCallingPermission(Manifest.permission.WRITE_SMS, "Add SMS draft"); |