summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java1
-rwxr-xr-xsrc/com/android/bluetooth/opp/BluetoothOppService.java4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java b/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
index 043e9f145..e624b0654 100644
--- a/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
+++ b/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
@@ -330,6 +330,7 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession {
if (status == BluetoothShare.STATUS_SUCCESS) {
Message msg = Message.obtain(mCallback);
msg.what = BluetoothOppObexSession.MSG_SHARE_COMPLETE;
+ mInfo.mStatus = status;
msg.obj = mInfo;
msg.sendToTarget();
} else {
diff --git a/src/com/android/bluetooth/opp/BluetoothOppService.java b/src/com/android/bluetooth/opp/BluetoothOppService.java
index 450072c7e..36a1099f1 100755
--- a/src/com/android/bluetooth/opp/BluetoothOppService.java
+++ b/src/com/android/bluetooth/opp/BluetoothOppService.java
@@ -727,9 +727,7 @@ public class BluetoothOppService extends Service {
info.mConfirm = cursor.getInt(cursor
.getColumnIndexOrThrow(BluetoothShare.USER_CONFIRMATION));
int newStatus = cursor.getInt(statusColumn);
-
- if (!BluetoothShare.isStatusCompleted(info.mStatus)
- && BluetoothShare.isStatusCompleted(newStatus)) {
+ if (BluetoothShare.isStatusCompleted(info.mStatus)) {
mNotifier.mNotificationMgr.cancel(info.mId);
}