summaryrefslogtreecommitdiffstats
path: root/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
diff options
context:
space:
mode:
authorPradeep Panigrahi <pradeepp@codeaurora.org>2014-01-29 11:43:58 +0530
committerAndre Eisenbach <eisenbach@google.com>2015-06-23 11:08:21 -0700
commitfbe0089395f9f81c1143cffe0674d0e406dfb983 (patch)
tree2319b131acd31ab9e531b0bfc033b04c5053edf7 /src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
parent77b75f59e3285a9b1b2b25f769456781b0806926 (diff)
downloadandroid_packages_apps_Bluetooth-fbe0089395f9f81c1143cffe0674d0e406dfb983.tar.gz
android_packages_apps_Bluetooth-fbe0089395f9f81c1143cffe0674d0e406dfb983.tar.bz2
android_packages_apps_Bluetooth-fbe0089395f9f81c1143cffe0674d0e406dfb983.zip
Avoid sending TRANSFER_COMPLETED_ACTION intent multiple times.
Use Case: 1. Share a picture through Bluetooth, select partner devices. 2. The partner devices do not confirm to receive the file. 3. Check the transfer status on the DUT. Failure: Failure Notification pops up twice when the shared files not received by the partner phone Fix: This change ensure that TRANSFER_COMPLETED_ACTION intent will not sent to receiver if there is any exception occurred during OPP operation because this intent is already sent to receiver from message handler. Bug: 22028876 Change-Id: I3ad2f24be185c37355dff43009a5236bede0106a
Diffstat (limited to 'src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java')
-rw-r--r--src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java b/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
index d3eb881bd..7cf6bd0b5 100644
--- a/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
+++ b/src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
@@ -542,8 +542,6 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession {
private void handleSendException(String exception) {
Log.e(TAG, "Error when sending file: " + exception);
- int status = BluetoothShare.STATUS_OBEX_DATA_ERROR;
- Constants.updateShareStatus(mContext1, mInfo.mId, status);
mCallback.removeMessages(BluetoothOppObexSession.MSG_CONNECT_TIMEOUT);
}