diff options
author | Ajay Panicker <apanicke@google.com> | 2015-09-09 12:11:51 -0700 |
---|---|---|
committer | Ajay Panicker <apanicke@google.com> | 2015-09-09 17:30:34 -0700 |
commit | 0ebd4e58920add6114b1f345b7d95e0709096fe3 (patch) | |
tree | 3a8a2525ab26741ca29c2a4b1023d9b48d8d311c /src/com/android | |
parent | 6385f5ec823dd1113708532d20729dba67d9beaa (diff) | |
download | android_packages_apps_Bluetooth-0ebd4e58920add6114b1f345b7d95e0709096fe3.tar.gz android_packages_apps_Bluetooth-0ebd4e58920add6114b1f345b7d95e0709096fe3.tar.bz2 android_packages_apps_Bluetooth-0ebd4e58920add6114b1f345b7d95e0709096fe3.zip |
Move SMS message to proper folder after sending
Move a SMS message to the correct folder upon receiving an intent
detailing if the message was succesfully sent or not. If sent
successfully, move to the SENT folder, otherwise move it to
the FAILED folder.
Bug: 22992865
Change-Id: Ifdcfb7bb613844f507ef27460ead520c6573b89d
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/bluetooth/map/BluetoothMapContentObserver.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/map/BluetoothMapContentObserver.java b/src/com/android/bluetooth/map/BluetoothMapContentObserver.java index 08285bf6c..80ef21bea 100644 --- a/src/com/android/bluetooth/map/BluetoothMapContentObserver.java +++ b/src/com/android/bluetooth/map/BluetoothMapContentObserver.java @@ -3023,6 +3023,9 @@ public class BluetoothMapContentObserver { if(status != 0/*0 is success*/) { msgInfo.statusDelivered = status; if(D) Log.d(TAG, "msgInfo.statusDelivered = " + status); + Sms.moveMessageToFolder(mContext, msgInfo.uri, Sms.MESSAGE_TYPE_FAILED, 0); + } else { + Sms.moveMessageToFolder(mContext, msgInfo.uri, Sms.MESSAGE_TYPE_SENT, 0); } } if (msgInfo.partsDelivered == msgInfo.parts) { |