Fix improper call handing surrounding gsm_phone_call_start and gsm_phone_ringing
git-svn-id: http://www.neo1973-germany.de/svn@134 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
parent
2cd242f769
commit
c928be9617
1 changed files with 5 additions and 1 deletions
|
@ -315,7 +315,7 @@ class PyneoController(object):
|
||||||
if ph_status == 0:
|
if ph_status == 0:
|
||||||
class_.notify_callbacks("gsm_phone_call_end")
|
class_.notify_callbacks("gsm_phone_call_end")
|
||||||
if ph_status == 3:
|
if ph_status == 3:
|
||||||
class_.notify_callbacks("gsm_phone_call_start")
|
class_.notify_callbacks("gsm_phone_ringing")
|
||||||
if ph_status == 4:
|
if ph_status == 4:
|
||||||
class_.notify_callbacks("gsm_phone_call_start")
|
class_.notify_callbacks("gsm_phone_call_start")
|
||||||
|
|
||||||
|
@ -366,6 +366,7 @@ class Dialer(object):
|
||||||
PyneoController.init()
|
PyneoController.init()
|
||||||
|
|
||||||
# Register our own callbacks
|
# Register our own callbacks
|
||||||
|
PyneoController.register_callback("gsm_phone_ringing", self.on_ringing)
|
||||||
PyneoController.register_callback("gsm_phone_call_start", self.on_call_start)
|
PyneoController.register_callback("gsm_phone_call_start", self.on_call_start)
|
||||||
PyneoController.register_callback("gsm_phone_call_end", self.on_call_end)
|
PyneoController.register_callback("gsm_phone_call_end", self.on_call_end)
|
||||||
|
|
||||||
|
@ -389,6 +390,9 @@ class Dialer(object):
|
||||||
def get_evas(self):
|
def get_evas(self):
|
||||||
return self.evas_canvas.evas_obj.evas
|
return self.evas_canvas.evas_obj.evas
|
||||||
|
|
||||||
|
def on_ringing(self):
|
||||||
|
self.show_screen(INCALL_SCREEN_NAME)
|
||||||
|
|
||||||
def on_call_start(self):
|
def on_call_start(self):
|
||||||
self.show_screen(INCALL_SCREEN_NAME)
|
self.show_screen(INCALL_SCREEN_NAME)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue