[telephony-app] should check for network registration state before enabling the call/send sms button
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dialer-app (Ubuntu) |
Fix Released
|
High
|
Ricardo Salveti |
Bug Description
Currently the telephony-app is not checking for network registration state at all, and always giving the user the possibility to do calls and send sms, even if that's not enabled by ofono.
With latest ofono (1.9phablet9), the registration property is already exported via ofono dbus api, so this just needs to be added to the app itself.
E.g.:
- NetworkRegistra
root@localhost:/# dbus-send --system --print-reply --dest=org.ofono /galaxynexus_0 org.ofono.
method return sender=:1.15 -> dest=:1.22 reply_serial=2
array [
dict entry(
string "Status"
variant string "registered"
)
dict entry(
string "Mode"
variant string "auto"
)
dict entry(
string "LocationAreaCode"
variant uint16 50219
)
dict entry(
string "CellId"
variant uint32 12593173
)
dict entry(
string "Technology"
variant string "umts"
)
dict entry(
string "MobileCountryCode"
variant string "724"
)
dict entry(
string "MobileNetworkCode"
variant string "03"
)
dict entry(
string "Name"
variant string "TIM 3G 19"
)
]
information type: | Proprietary → Public |
affects: | manhattan → touch-preview-images |
Changed in touch-preview-images: | |
assignee: | nobody → Ricardo Salveti (rsalveti) |
affects: | touch-preview-images → dialer-app (Ubuntu) |
tags: | added: touch-preview-images |
Note, the connection manager should be able to listen for an associated PropertiesChanged signal to monitor when the registration status changes.