summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSmriti Gupta <smritig@codeaurora.org>2014-09-29 18:36:15 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2014-09-30 21:58:08 -0700
commit54af414cd095db2123bb848c9680d6086e76333e (patch)
tree71e0215c98fadfdf4b780347d90694a01e591ed3
parenta8e4b585719c9bcb96033757c9caac55f5f900de (diff)
downloadandroid_packages_apps_BluetoothExt-54af414cd095db2123bb848c9680d6086e76333e.tar.gz
android_packages_apps_BluetoothExt-54af414cd095db2123bb848c9680d6086e76333e.tar.bz2
android_packages_apps_BluetoothExt-54af414cd095db2123bb848c9680d6086e76333e.zip
PBAP C: Do abort when going back to Main Activity
This change will abort the current ongoing phonebook download when going back to the Main Activity from the Phonebook activity since the Pbap Activity is no longer active. Change-Id: I7aa77fbb2d958497dc0c41625835fadeb35f112f CRs-fixed: 731540
-rw-r--r--bttestapp/src/org/codeaurora/bluetooth/bttestapp/PbapTestActivity.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/bttestapp/src/org/codeaurora/bluetooth/bttestapp/PbapTestActivity.java b/bttestapp/src/org/codeaurora/bluetooth/bttestapp/PbapTestActivity.java
index fd7e70c..ff7f044 100644
--- a/bttestapp/src/org/codeaurora/bluetooth/bttestapp/PbapTestActivity.java
+++ b/bttestapp/src/org/codeaurora/bluetooth/bttestapp/PbapTestActivity.java
@@ -428,6 +428,11 @@ public class PbapTestActivity extends MonkeyActivity implements IBluetoothConnec
@Override
protected void onPause() {
+ /*
+ * Going to call abort if any pending request is ongoing,
+ * checks for the same are handled internally
+ */
+ mProfileService.getPbapClient().abort();
super.onPause();
Logger.v(TAG, "onPause()");
}
@@ -981,6 +986,10 @@ public class PbapTestActivity extends MonkeyActivity implements IBluetoothConnec
}
public void onClick_abort(View v) {
+ /*
+ * Going to call abort if any pending request is ongoing,
+ * checks for the same are handled internally
+ */
mProfileService.getPbapClient().abort();
}
}