OSDN Git Service

Add rejected calls to Incomming Call History
authorAjay Panicker <apanicke@google.com>
Wed, 22 Mar 2017 01:22:04 +0000 (18:22 -0700)
committerAjay Panicker <apanicke@google.com>
Wed, 22 Mar 2017 17:09:09 +0000 (17:09 +0000)
Bug: 36490575
Test: Connect to carkit after rejecting a call on test device
Change-Id: Ifa3593b5b26e13a3bd6d2b94f744254e3eb353fb

src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java

index 54b261c..823f222 100644 (file)
@@ -1042,7 +1042,8 @@ public class BluetoothPbapObexServer extends ServerRequestHandler {
         String selection = null;
         switch (type) {
             case ContentType.INCOMING_CALL_HISTORY:
-                selection = Calls.TYPE + "=" + CallLog.Calls.INCOMING_TYPE;
+                selection = "(" + Calls.TYPE + "=" + CallLog.Calls.INCOMING_TYPE + " OR "
+                        + Calls.TYPE + "=" + CallLog.Calls.REJECTED_TYPE + ")";
                 break;
             case ContentType.OUTGOING_CALL_HISTORY:
                 selection = Calls.TYPE + "=" + CallLog.Calls.OUTGOING_TYPE;