diff options
author | Smriti Gupta <smritig@codeaurora.org> | 2014-09-29 18:36:15 +0530 |
---|---|---|
committer | Smriti Gupta <smritig@codeaurora.org> | 2014-09-30 16:05:33 +0530 |
commit | 2a9f503ac09436106532d570a60de34e0ed01523 (patch) | |
tree | 820a94c644d35f66534b1f675d3cbb5b956dcb14 | |
parent | dc387d32641ef49a3f7ff386358717e09c821e99 (diff) | |
download | android_packages_apps_BluetoothExt-2a9f503ac09436106532d570a60de34e0ed01523.tar.gz android_packages_apps_BluetoothExt-2a9f503ac09436106532d570a60de34e0ed01523.tar.bz2 android_packages_apps_BluetoothExt-2a9f503ac09436106532d570a60de34e0ed01523.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.java | 9 |
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 cee30be..e0208df 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(); } } |