Closed
Bug 978814
Opened 11 years ago
Closed 11 years ago
[DSDS] RIL should re-use currently in-use SIM cards
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect)
Firefox OS Graveyard
Gaia::Dialer
Tracking
(blocking-b2g:1.4+, b2g-v1.4 fixed, b2g-v2.0 fixed)
People
(Reporter: drs, Assigned: drs)
References
Details
(Whiteboard: [cr 639080])
Attachments
(1 file)
From an email thread on this:
> What we’re saying is that, if a call is in progress, all call buttons will not
> respect the preferred SIM setting (SIM1, SIM2, always ask). Instead, call
> buttons will display (and use) the SIM used by the call in progress. And call
> log will go to the Dialer instead of dialing directly (to inform the user).
Comment 2•11 years ago
|
||
In CallButton, we should have the UI and the event handlers look at mozTelephony.active.
Something like:
if(mozTelephony.active) {
cardIndex = mozTelephony.active.serviceId;
}
Comment 3•11 years ago
|
||
In terms of architecture, we should be careful about CallButton in SMS. SMS doesn't have the permission for mozTelephony so either we need to do the mozTelephony things outside of CallButton or CallButton needs to check the existence of mozTelephony.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → drs+bugzilla
Assignee | ||
Updated•11 years ago
|
blocking-b2g: --- → 1.4?
Comment 4•11 years ago
|
||
Wilfred,
Please review if this would be a blocker
Flags: needinfo?(wmathanaraj)
Assignee | ||
Comment 5•11 years ago
|
||
This can potentially be pretty bad if not done. For example, emergency calls might not be placed, and if the user tries to make a call on an inactive SIM when there's already a call in progress, the active call will be lost (no audio sent or received) but still be active. There's some Gecko work going on to prevent this state from happening in bug 984919, but at the very least we should handle the new error message that they're creating in Gaia.
Comment 6•11 years ago
|
||
(In reply to Anthony Ricaud (:rik) from comment #2)
> In CallButton, we should have the UI and the event handlers look at
> mozTelephony.active.
>
> Something like:
> if(mozTelephony.active) {
> cardIndex = mozTelephony.active.serviceId;
> }
Kindly note that there could be no mozTelephony.active but there's still a call. This condition isn't strong enough.
Comment 7•11 years ago
|
||
Yeah, it was a last note before leaving on week-end. We talked about that IRL and if (mozTelephony.calls.length && mozTelephony.calls[0].serviceId) sounds like the right test. I'm not sure about this if there is a conference call though.
Comment 8•11 years ago
|
||
(In reply to Anthony Ricaud (:rik) from comment #7)
> Yeah, it was a last note before leaving on week-end. We talked about that
> IRL and if (mozTelephony.calls.length && mozTelephony.calls[0].serviceId)
> sounds like the right test. I'm not sure about this if there is a conference
> call though.
Then you need this:
mozTelephony.conferenceGroup.calls.length
Assignee | ||
Comment 9•11 years ago
|
||
Attachment #8393601 -
Flags: review?(anthony)
Comment 10•11 years ago
|
||
Moving to 1.4+ for pretty bad broken experience as described in comment 5.
blocking-b2g: 1.4? → 1.4+
Comment 11•11 years ago
|
||
Comment on attachment 8393601 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/17332
Can you move the checks in a function TelephonyHelper.getInUseCardIndex for MultiSIMActionButton and SimPicker?
The code would read better I believe without needing to put comments. The logic would be a bit DRY-er.
Attachment #8393601 -
Flags: review?(anthony) → review-
Assignee | ||
Comment 12•11 years ago
|
||
Comment on attachment 8393601 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/17332
(In reply to Anthony Ricaud (:rik) from comment #11)
> Comment on attachment 8393601 [details] [review]
> Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/17332
>
> Can you move the checks in a function TelephonyHelper.getInUseCardIndex for
> MultiSIMActionButton and SimPicker?
> The code would read better I believe without needing to put comments. The
> logic would be a bit DRY-er.
Updated PR. I chose to put it in SimPicker instead since it didn't make sense to me to put it in TelephonyHelper (circular dependency and weird SoC). I also realized that I forgot to rename SimPicker.show, so I did that too.
Attachment #8393601 -
Flags: review- → review?(anthony)
Comment 13•11 years ago
|
||
Commenting on Wilfred's behalf while he is out:
Blocking is the right decision here based on the user impact described.
Flags: needinfo?(wmathanaraj)
Updated•11 years ago
|
Component: Gaia → Gaia::Dialer
Assignee | ||
Comment 14•11 years ago
|
||
After Anthony and I talked in person, we came to the conclusion that sticking this logic in TelephonyHelper would be best since we're going to eventually be moving it into shared/ as part of breaking up the comm apps. I updated the PR with this change.
Comment 15•11 years ago
|
||
set target milestone to 1.4 S4 for now
Target Milestone: --- → 1.4 S4 (28mar)
Comment 16•11 years ago
|
||
Comment on attachment 8393601 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/17332
r+ with the changes mentioned on Github.
Attachment #8393601 -
Flags: review?(anthony) → review+
Assignee | ||
Comment 17•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 18•11 years ago
|
||
This has conflicts on 1.4.
status-b2g-v1.4:
--- → affected
status-b2g-v2.0:
--- → fixed
Flags: needinfo?(drs+bugzilla)
Keywords: branch-patch-needed
Assignee | ||
Comment 19•11 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•