diff --git a/epydial/data/db/epydial.sqlite b/epydial/data/db/epydial.sqlite index 8331810..bf40f16 100755 Binary files a/epydial/data/db/epydial.sqlite and b/epydial/data/db/epydial.sqlite differ diff --git a/epydial/epydial.py b/epydial/epydial.py index 99c88a5..070dd20 100755 --- a/epydial/epydial.py +++ b/epydial/epydial.py @@ -609,7 +609,6 @@ class Dialer(object): PyneoController.register_callback("show_sms_screen_detail", self.on_sms_screen_detail) PyneoController.register_callback("show_weather_screen", self.on_weather_screen) PyneoController.register_callback("show_audio_screen", self.on_audio_screen) -# PyneoController.register_callback("on_get_song_duration", self.on_get_song_duration) # Initialize the D-Bus interface to pyneo dbus_ml = e_dbus.DBusEcoreMainLoop() diff --git a/epydial/sms_detail.py b/epydial/sms_detail.py index 21303b3..ecffdfb 100644 --- a/epydial/sms_detail.py +++ b/epydial/sms_detail.py @@ -22,15 +22,14 @@ class SmsDetail(EdjeGroup): connection.commit() def on_show_sms_detail(self, sms_number, sms_status): - self.sms_offset = sms_number connection = connect(DB_FILE_PATH) cursor = connection.cursor() - cursor.execute("SELECT * FROM sms WHERE status='%s' ORDER BY time DESC LIMIT 1 OFFSET %s" %(self.sms_offset, sms_number)) + cursor.execute("SELECT * FROM sms WHERE status='%s' ORDER BY time DESC LIMIT 1 OFFSET %s" %(sms_status, sms_number)) for row in cursor: self.part_text_set("sms_text_1", row[2] + '
' + row[1] + '
' + row[3]) - if row[0] == 'REC UNREAD': - self.mark_sms_read(row[2]) + if row[0] == 'REC UNREAD': + self.mark_sms_read(row[2]) @edje.decorators.signal_callback("mouse,up,1", "*") def on_edje_signal_dialer_status_triggered(self, emission, source):