[Title]modified for call list erase bug
authorsungmin82.ha <sungmin82.ha@samsung.com>
Thu, 1 Sep 2011 05:37:28 +0000 (14:37 +0900)
committersungmin82.ha <sungmin82.ha@samsung.com>
Thu, 1 Sep 2011 05:37:28 +0000 (14:37 +0900)
[Type]bug fix
[Module]ide-plugin-eventinjector
[Priority]minor
[CQ#]
[Redmine#]#1668
[Problem]
[Cause]
[Solution]
[TestCase]

com.samsung.linuxplatform.telephony.call/src/com/samsung/linuxplatform/telephony/call/page/MOMTCall.java

index d3c8761..df552ea 100644 (file)
@@ -365,7 +365,8 @@ public class MOMTCall  extends AbstractInjectorPage{
                        model.clear();
                        StructureGA header = aga.getHeader();
                        int loopCount = header.getInt("COUNT");
-                       
+                       int addCnt = 0;
+
                        StructureGA body = aga.getBody();
                        for(int i=0; i < loopCount; i++){
                                CallListVO cl = new CallListVO();
@@ -373,9 +374,16 @@ public class MOMTCall  extends AbstractInjectorPage{
                                cl.setStatus(body.getInt("STAT",i)-1);
                                cl.setMultiParty(body.getInt("MULTIPARTY",i));
                                cl.setMomt(body.getInt("CALL_TYPE",i)-1);
-                               cl.setNumber(new String(body.getByteArray("NUMBER",i)).trim());
+                               cl.setNumber(new String(body.getByteArray("NUMBER",i)).trim());                         
+                               if(cl.getStatus() == -1)
+                               {
+                                       loopCount++;
+                                       addCnt++;
+                                       continue;
+                               }
                                model.add(cl);
                        }
+                       loopCount -= addCnt;
                        ((TelephonyCall)getParent()).refresh();
                        if(loopCount != 6)
                                listfull = false;