* #25270 Overall improvements of transitions between calls and call actions
* #25117 Refactor and stability
diff --git a/src/com/savoirfairelinux/sflphone/model/BubbleModel.java b/src/com/savoirfairelinux/sflphone/model/BubbleModel.java
index 8650230..c1a87cb 100644
--- a/src/com/savoirfairelinux/sflphone/model/BubbleModel.java
+++ b/src/com/savoirfairelinux/sflphone/model/BubbleModel.java
@@ -4,6 +4,7 @@
import java.util.List;
import android.graphics.PointF;
+import android.util.Log;
public class BubbleModel
{
@@ -182,5 +183,25 @@
}
}
+ public Bubble getBubble(SipCall call) {
+ for(Bubble b : bubbles){
+ if(call == null){
+ Log.e(TAG, "call null");
+ }
+ if(b.associated_call.getCallId() == null){
+ Log.e(TAG, "id null");
+ }
+ if(b.associated_call.getCallId().contentEquals(call.getCallId()))
+ return b;
+ }
+ return null;
+ }
+
+ public void removeBubble(SipCall sipCall) {
+
+ bubbles.remove(getBubble(sipCall));
+
+ }
+
}