xmm6262: Fix responseCallList() with xmm7260.
authorAndreas Schneider <asn@cryptomilk.org>
Sat, 17 Jan 2015 18:47:32 +0000 (19:47 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Sat, 17 Jan 2015 18:49:35 +0000 (19:49 +0100)
The CallDetails are part of the RIL_Call only the video call flag.

Change-Id: I9cd1d70bfba9cf33aea324a8a787e9521475ed40
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
ril/xmm6262/libril/ril.cpp

index 258c300c6ef0fbeadddccb653479053b61dab9d5..b5c124bca41f7d8ec258825048cdb5c5b75a5c67 100644 (file)
@@ -1840,11 +1840,12 @@ static int responseCallList(Parcel &p, void *response, size_t responselen) {
         p.writeInt32(p_cur->isVoice);
 
 #ifdef MODEM_TYPE_XMM7260
-        /* Samsung CallDetails */
         p.writeInt32(p_cur->isVideo);
-        p.writeInt32(p_cur->call_type);
-        p.writeInt32(p_cur->call_domain);
-        writeStringToParcel(p, p_cur->csv);
+
+        /* Pass CallDetails */
+        p.writeInt32(0);
+        p.writeInt32(0);
+        writeStringToParcel(p, "");
 #endif
 
         p.writeInt32(p_cur->isVoicePrivacy);
@@ -1875,7 +1876,12 @@ static int responseCallList(Parcel &p, void *response, size_t responselen) {
             p_cur->als,
             (p_cur->isVoice)?"voc":"nonvoc",
             (p_cur->isVoicePrivacy)?"evp":"noevp");
-        appendPrintBuf("%s%s,cli=%d,name='%s',%d]",
+#ifdef MODEM_TYPE_XMM7260
+        appendPrintBuf("%s,%s,",
+                printBuf,
+                (p_cur->isVideo) ? "vid" : "novid");
+#endif
+        appendPrintBuf("%snumber='%s',cli=%d,name='%s',%d]",
             printBuf,
             p_cur->number,
             p_cur->numberPresentation,