summaryrefslogtreecommitdiffstats
path: root/src/org/codeaurora/bluetooth/ftp
diff options
context:
space:
mode:
authorAshwini Munigala <AshwiniM@codeaurora.org>2013-07-09 11:08:36 +0530
committerAshwini Munigala <AshwiniM@codeaurora.org>2013-07-09 11:08:36 +0530
commitddf68064e76f05c71ba9584483068eb8f4179aa5 (patch)
tree2dac6a6646d6ac59cdd765224c14604b9eb4285f /src/org/codeaurora/bluetooth/ftp
parent77b4192fe6764babf541c23bd9260c8ce5430581 (diff)
downloadandroid_packages_apps_BluetoothExt-ddf68064e76f05c71ba9584483068eb8f4179aa5.tar.gz
android_packages_apps_BluetoothExt-ddf68064e76f05c71ba9584483068eb8f4179aa5.tar.bz2
android_packages_apps_BluetoothExt-ddf68064e76f05c71ba9584483068eb8f4179aa5.zip
MAP: Fix Issues for MAP Server on Bluedroid.
Handle SDP registeration and serversocket binding on START/STOP MAP Service, instead from every MAP session CONNECT/DISCONNECT . Allow EMPTY Recipient address for pushEmail Drafts. MAP and FTP concurrency issue fix. Optimization for retreiving email message size for GetMessagesListing Email. Reject pushSMS for Vcard containing , or ; in Tel entry. Change-Id: I738c416c2ea1296ea2b0af193bc5240d22a77185 CRs-fixed: 504042
Diffstat (limited to 'src/org/codeaurora/bluetooth/ftp')
-rw-r--r--src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java b/src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java
index 9a18cc6..2f9c2c9 100644
--- a/src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java
+++ b/src/org/codeaurora/bluetooth/ftp/BluetoothFtpService.java
@@ -339,7 +339,7 @@ public class BluetoothFtpService extends Service {
notifyAuthCancelled();
removeAuthChallTimer();
removeFtpNotification(NOTIFICATION_ID_ACCESS);
- } else if (action.equals(BluetoothDevice.ACTION_ACL_DISCONNECTED)) {
+ } else if (action.equals(BluetoothDevice.ACTION_ACL_DISCONNECTED) && isWaitingAuthorization) {
BluetoothDevice device =
intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
if (device != null && device.equals(mRemoteDevice)) {
@@ -457,12 +457,14 @@ public class BluetoothFtpService extends Service {
if (mRfcommServerSocket != null) {
mRfcommServerSocket.close();
+ mRfcommServerSocket =null ;
}
}
if (accept == true) {
if (mConnSocket != null) {
mConnSocket.close();
+ mConnSocket = null;
}
}
}
@@ -490,9 +492,6 @@ public class BluetoothFtpService extends Service {
}
}
- mRfcommServerSocket = null;
- mConnSocket = null;
-
mHasStarted = false;
if (stopSelfResult(mStartId)) {
if (VERBOSE) Log.v(TAG, "successfully stopped ftp service");
@@ -557,7 +556,6 @@ public class BluetoothFtpService extends Service {
try {
closeRfcommSocket(false, true);
- mConnSocket = null;
} catch (IOException e) {
Log.e(TAG, "closeSocket error: " + e.toString());
}