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
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 @@
 
     @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 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();
     }
 }