@@ -59,6 +59,10 @@ Item {
59 onSearchClicked: console.log("Search Clicked")
59 onSearchClicked: console.log("Search Clicked")
61 property real panelAndSeparatorHeight: panel.indicators.panelHeight + units.dp(2)
61 property real panelAndSeparatorHeight: panel.indicators.panelHeight + units.dp(2)
63+ Component.onCompleted: {
64+ callManager.foregroundCall = phoneCall;
@@ -108,11 +112,10 @@ Item {
108 width: parent.width/3
112 width: parent.width/3
110 onClicked: {
114 onClicked: {
111− if (callManager.hasCalls) {
115+ if (callManager.callIndicatorVisible) {
112− callManager.foregroundCall = null;
116+ callManager.callIndicatorVisible = false;
113− callManager.backgroundCall = null;
115− callManager.foregroundCall = phoneCall;
118+ callManager.callIndicatorVisible = true;
@@ -135,7 +138,7 @@ Item {
135 panel.indicators.hide();
138 panel.indicators.hide();
136 // Wait for animation to complete
139 // Wait for animation to complete
137 tryCompare(panel.indicators.hideAnimation, "running", false);
140 tryCompare(panel.indicators.hideAnimation, "running", false);
138− callManager.foregroundCall = null;
141+ callManager.callIndicatorVisible = false;
140 // Wait for the indicators to get into position.
143 // Wait for the indicators to get into position.
141 // (switches between normal and fullscreen modes are animated)
144 // (switches between normal and fullscreen modes are animated)
@@ -206,11 +209,7 @@ Item {
206 // Pressing on the top edge of the indicator should have no effect if the panel
209 // Pressing on the top edge of the indicator should have no effect if the panel
207 // has an active call
210 // has an active call
208 function test_noHintOnActiveCall() {
211 function test_noHintOnActiveCall() {
209− callManager.foregroundCall = phoneCall;
212+ callManager.callIndicatorVisible = true;
210− // Wait for the indicators to get into position.
211− // (switches between normal and fullscreen modes are animated)
212− var indicatorArea = findChild(panel, "indicatorArea");
213− tryCompare(indicatorArea, "y", panel.callHint.height);
215 var indicatorItemCoord = get_indicator_item_position(0);
214 var indicatorItemCoord = get_indicator_item_position(0);
@@ -231,18 +230,18 @@ Item {
232 function test_drag_show_data() {
231 function test_drag_show_data() {
234− { tag: "pinned", fullscreenFlag: false, alreadyOpen: false, call: null,
233+ { tag: "pinned", fullscreenFlag: false, alreadyOpen: false, call: false,
235 indicatorY: function() { return 0 } },
234 indicatorY: function() { return 0 } },
236− { tag: "fullscreen", fullscreenFlag: true, alreadyOpen: false, call: null,
235+ { tag: "fullscreen", fullscreenFlag: true, alreadyOpen: false, call: false,
237 indicatorY: function() {return -panel.panelAndSeparatorHeight } },
236 indicatorY: function() {return -panel.panelAndSeparatorHeight } },
238− { tag: "pinned-alreadyOpen", fullscreenFlag: false, alreadyOpen: true, call: null,
237+ { tag: "pinned-alreadyOpen", fullscreenFlag: false, alreadyOpen: true, call: false,
239 indicatorY: function() { return 0 } },
238 indicatorY: function() { return 0 } },
240− { tag: "fullscreen-alreadyOpen", fullscreenFlag: true, alreadyOpen: true, call: null,
239+ { tag: "fullscreen-alreadyOpen", fullscreenFlag: true, alreadyOpen: true, call: false,
241− indicatorY: function() {return -panel.panelAndSeparatorHeight } },
240+ indicatorY: function() {return 0 } },
242− { tag: "pinned-callActive", fullscreenFlag: false, alreadyOpen: false, call: phoneCall,
241+ { tag: "pinned-callActive", fullscreenFlag: false, alreadyOpen: false, call: true,
243− indicatorY: function() { return panel.callHint.height } },
242+ indicatorY: function() { return 0 } },
244− { tag: "fullscreen-callActive", fullscreenFlag: true, alreadyOpen: false, call: phoneCall,
243+ { tag: "fullscreen-callActive", fullscreenFlag: true, alreadyOpen: false, call: true,
245− indicatorY: function() { return panel.callHint.height - panel.panelAndSeparatorHeight } }
244+ indicatorY: function() { return -panel.panelAndSeparatorHeight } }
@@ -251,7 +250,7 @@ Item {
251 // expose more of the panel, binding it to the selected indicator and opening it's menu.
250 // expose more of the panel, binding it to the selected indicator and opening it's menu.
252 function test_drag_show(data) {
251 function test_drag_show(data) {
253 panel.fullscreenMode = data.fullscreenFlag;
252 panel.fullscreenMode = data.fullscreenFlag;
254− callManager.foregroundCall = data.call;
253+ callManager.callIndicatorVisible = data.call;
256 if (data.alreadyOpen) {
255 if (data.alreadyOpen) {
257 panel.indicators.show();
256 panel.indicators.show();