@@ -57,10 +57,6 @@ Item {
59 property real panelAndSeparatorHeight: panel.indicators.panelHeight + units.dp(2)
59 property real panelAndSeparatorHeight: panel.indicators.panelHeight + units.dp(2)
61− Component.onCompleted: {
62− callManager.foregroundCall = phoneCall;
@@ -110,10 +106,10 @@ Item {
110 width: parent.width/3
106 width: parent.width/3
112 onClicked: {
108 onClicked: {
113− if (callManager.callIndicatorVisible) {
109+ if (callManager.foregroundCall) {
114− callManager.callIndicatorVisible = false;
110+ callManager.foregroundCall = null;
116− callManager.callIndicatorVisible = true;
112+ callManager.foregroundCall = phoneCall;
@@ -136,7 +132,7 @@ Item {
136 panel.indicators.hide();
132 panel.indicators.hide();
137 // Wait for animation to complete
133 // Wait for animation to complete
138 tryCompare(panel.indicators.hideAnimation, "running", false);
134 tryCompare(panel.indicators.hideAnimation, "running", false);
139− callManager.callIndicatorVisible = false;
135+ callManager.foregroundCall = null;
141 // Wait for the indicators to get into position.
137 // Wait for the indicators to get into position.
142 // (switches between normal and fullscreen modes are animated)
138 // (switches between normal and fullscreen modes are animated)
@@ -207,7 +203,7 @@ Item {
207 // Pressing on the top edge of the indicator should have no effect if the panel
203 // Pressing on the top edge of the indicator should have no effect if the panel
208 // has an active call
204 // has an active call
209 function test_noHintOnActiveCall() {
205 function test_noHintOnActiveCall() {
210− callManager.callIndicatorVisible = true;
206+ callManager.foregroundCall = phoneCall;
212 var indicatorItemCoord = get_indicator_item_position(0);
208 var indicatorItemCoord = get_indicator_item_position(0);
@@ -228,17 +224,17 @@ Item {
229 function test_drag_show_data() {
225 function test_drag_show_data() {
231− { tag: "pinned", fullscreenFlag: false, alreadyOpen: false, call: false,
227+ { tag: "pinned", fullscreenFlag: false, alreadyOpen: false, call: null,
232 indicatorY: 0 },
228 indicatorY: 0 },
233− { tag: "fullscreen", fullscreenFlag: true, alreadyOpen: false, call: false,
229+ { tag: "fullscreen", fullscreenFlag: true, alreadyOpen: false, call: null,
234 indicatorY: -panel.panelAndSeparatorHeight },
230 indicatorY: -panel.panelAndSeparatorHeight },
235− { tag: "pinned-alreadyOpen", fullscreenFlag: false, alreadyOpen: true, call: false,
231+ { tag: "pinned-alreadyOpen", fullscreenFlag: false, alreadyOpen: true, call: null,
236 indicatorY: 0 },
232 indicatorY: 0 },
237− { tag: "fullscreen-alreadyOpen", fullscreenFlag: true, alreadyOpen: true, call: false,
233+ { tag: "fullscreen-alreadyOpen", fullscreenFlag: true, alreadyOpen: true, call: null,
238 indicatorY: 0 },
234 indicatorY: 0 },
239− { tag: "pinned-callActive", fullscreenFlag: false, alreadyOpen: false, call: true,
235+ { tag: "pinned-callActive", fullscreenFlag: false, alreadyOpen: false, call: phoneCall,
240 indicatorY: 0},
236 indicatorY: 0},
241− { tag: "fullscreen-callActive", fullscreenFlag: true, alreadyOpen: false, call: true,
237+ { tag: "fullscreen-callActive", fullscreenFlag: true, alreadyOpen: false, call: phoneCall,
242 indicatorY: -panel.panelAndSeparatorHeight }
238 indicatorY: -panel.panelAndSeparatorHeight }
@@ -248,7 +244,7 @@ Item {
248 // expose more of the panel, binding it to the selected indicator and opening it's menu.
244 // expose more of the panel, binding it to the selected indicator and opening it's menu.
249 function test_drag_show(data) {
245 function test_drag_show(data) {
250 panel.fullscreenMode = data.fullscreenFlag;
246 panel.fullscreenMode = data.fullscreenFlag;
251− callManager.callIndicatorVisible = data.call;
247+ callManager.foregroundCall = data.call;
253 if (data.alreadyOpen) {
249 if (data.alreadyOpen) {
254 panel.indicators.show();
250 panel.indicators.show();