wokred on updating backend database query or UIfixing issue for android
This commit is contained in:
parent
ff0adde955
commit
9e9cc65eaf
|
@ -53,5 +53,7 @@ def search_sql(xAddress="toaddress", account=None, folder="inbox", where=None, w
|
||||||
if len(sqlStatementParts) > 0:
|
if len(sqlStatementParts) > 0:
|
||||||
sqlStatementBase += "WHERE " + " AND ".join(sqlStatementParts)
|
sqlStatementBase += "WHERE " + " AND ".join(sqlStatementParts)
|
||||||
if folder == "sent":
|
if folder == "sent":
|
||||||
sqlStatementBase += " ORDER BY lastactiontime"
|
sqlStatementBase += " ORDER BY lastactiontime DESC"
|
||||||
|
elif folder == "inbox":
|
||||||
|
sqlStatementBase += " ORDER BY received DESC"
|
||||||
return sqlQuery(sqlStatementBase, sqlArguments)
|
return sqlQuery(sqlStatementBase, sqlArguments)
|
|
@ -396,7 +396,7 @@ NavigationLayout:
|
||||||
id: txt_input
|
id: txt_input
|
||||||
size_hint_y: None
|
size_hint_y: None
|
||||||
font_size: '13sp'
|
font_size: '13sp'
|
||||||
height: 50
|
height: self.parent.height/2
|
||||||
hint_text: 'type or search recipients address starting with BM-'
|
hint_text: 'type or search recipients address starting with BM-'
|
||||||
RV:
|
RV:
|
||||||
id: rv
|
id: rv
|
||||||
|
|
|
@ -127,7 +127,7 @@ class Inbox(Screen):
|
||||||
mail[5] + ',' + mail[3].replace('\n', ''))[0:50] + '........',
|
mail[5] + ',' + mail[3].replace('\n', ''))[0:50] + '........',
|
||||||
'receivedTime': mail[6]})
|
'receivedTime': mail[6]})
|
||||||
for item in data:
|
for item in data:
|
||||||
meny = ThreeLineAvatarIconListItem(
|
meny = TwoLineAvatarIconListItem(
|
||||||
text=item['text'],
|
text=item['text'],
|
||||||
secondary_text=item['secondary_text'],
|
secondary_text=item['secondary_text'],
|
||||||
theme_text_color='Custom',
|
theme_text_color='Custom',
|
||||||
|
@ -138,10 +138,7 @@ class Inbox(Screen):
|
||||||
meny.bind(on_press=partial(
|
meny.bind(on_press=partial(
|
||||||
self.inbox_detail, item['receivedTime']))
|
self.inbox_detail, item['receivedTime']))
|
||||||
carousel = Carousel(direction='right')
|
carousel = Carousel(direction='right')
|
||||||
if platform == 'android':
|
carousel.height = meny.height
|
||||||
carousel.height = 150
|
|
||||||
elif platform == 'linux':
|
|
||||||
carousel.height = meny.height - 10
|
|
||||||
carousel.size_hint_y = None
|
carousel.size_hint_y = None
|
||||||
carousel.ignore_perpendicular_swipes = True
|
carousel.ignore_perpendicular_swipes = True
|
||||||
carousel.data_index = 0
|
carousel.data_index = 0
|
||||||
|
@ -364,10 +361,7 @@ class AddressBook(Screen):
|
||||||
meny.bind(on_press=partial(
|
meny.bind(on_press=partial(
|
||||||
self.addBook_detail, item[1], item[0]))
|
self.addBook_detail, item[1], item[0]))
|
||||||
carousel = Carousel(direction='right')
|
carousel = Carousel(direction='right')
|
||||||
if platform == 'android':
|
carousel.height = meny.height
|
||||||
carousel.height = 140
|
|
||||||
elif platform == 'linux':
|
|
||||||
carousel.height = meny.height - 10
|
|
||||||
carousel.size_hint_y = None
|
carousel.size_hint_y = None
|
||||||
carousel.ignore_perpendicular_swipes = True
|
carousel.ignore_perpendicular_swipes = True
|
||||||
carousel.data_index = 0
|
carousel.data_index = 0
|
||||||
|
@ -773,7 +767,7 @@ class Sent(Screen):
|
||||||
mail[2] + ',' + mail[3].replace('\n', ''))[0:50] + '........',
|
mail[2] + ',' + mail[3].replace('\n', ''))[0:50] + '........',
|
||||||
'lastactiontime': mail[6]})
|
'lastactiontime': mail[6]})
|
||||||
for item in self.data:
|
for item in self.data:
|
||||||
meny = ThreeLineAvatarIconListItem(
|
meny = TwoLineAvatarIconListItem(
|
||||||
text=item['text'],
|
text=item['text'],
|
||||||
secondary_text=item['secondary_text'],
|
secondary_text=item['secondary_text'],
|
||||||
theme_text_color='Custom',
|
theme_text_color='Custom',
|
||||||
|
@ -784,10 +778,7 @@ class Sent(Screen):
|
||||||
meny.bind(on_press=partial(
|
meny.bind(on_press=partial(
|
||||||
self.sent_detail, item['lastactiontime']))
|
self.sent_detail, item['lastactiontime']))
|
||||||
carousel = Carousel(direction='right')
|
carousel = Carousel(direction='right')
|
||||||
if platform == 'android':
|
carousel.height = meny.height
|
||||||
carousel.height = 150
|
|
||||||
elif platform == 'linux':
|
|
||||||
carousel.height = meny.height - 10
|
|
||||||
carousel.size_hint_y = None
|
carousel.size_hint_y = None
|
||||||
carousel.ignore_perpendicular_swipes = True
|
carousel.ignore_perpendicular_swipes = True
|
||||||
carousel.data_index = 0
|
carousel.data_index = 0
|
||||||
|
@ -907,7 +898,7 @@ class Trash(Screen):
|
||||||
src_mng_obj.trash_cnt.badge_text = str(len(trash_data))
|
src_mng_obj.trash_cnt.badge_text = str(len(trash_data))
|
||||||
state.trash_count = str(len(trash_data))
|
state.trash_count = str(len(trash_data))
|
||||||
for item in trash_data:
|
for item in trash_data:
|
||||||
meny = ThreeLineAvatarIconListItem(
|
meny = TwoLineAvatarIconListItem(
|
||||||
text=item[1],
|
text=item[1],
|
||||||
secondary_text=item[2][:50] + '........' if len(
|
secondary_text=item[2][:50] + '........' if len(
|
||||||
item[2]) >= 50 else (
|
item[2]) >= 50 else (
|
||||||
|
@ -919,10 +910,7 @@ class Trash(Screen):
|
||||||
2][0].upper() <= 'Z') else '!')
|
2][0].upper() <= 'Z') else '!')
|
||||||
meny.add_widget(AvatarSampleWidget(source=img_latter))
|
meny.add_widget(AvatarSampleWidget(source=img_latter))
|
||||||
carousel = Carousel(direction='right')
|
carousel = Carousel(direction='right')
|
||||||
if platform == 'android':
|
carousel.height = meny.height
|
||||||
carousel.height = 150
|
|
||||||
elif platform == 'linux':
|
|
||||||
carousel.height = meny.height - 10
|
|
||||||
carousel.size_hint_y = None
|
carousel.size_hint_y = None
|
||||||
carousel.ignore_perpendicular_swipes = True
|
carousel.ignore_perpendicular_swipes = True
|
||||||
carousel.data_index = 0
|
carousel.data_index = 0
|
||||||
|
@ -1734,10 +1722,7 @@ class Draft(Screen):
|
||||||
meny.bind(on_press=partial(
|
meny.bind(on_press=partial(
|
||||||
self.draft_detail, item['lastactiontime']))
|
self.draft_detail, item['lastactiontime']))
|
||||||
carousel = Carousel(direction='right')
|
carousel = Carousel(direction='right')
|
||||||
if platform == 'android':
|
carousel.height = meny.height
|
||||||
carousel.height = 150
|
|
||||||
elif platform == 'linux':
|
|
||||||
carousel.height = meny.height - 10
|
|
||||||
carousel.size_hint_y = None
|
carousel.size_hint_y = None
|
||||||
carousel.ignore_perpendicular_swipes = True
|
carousel.ignore_perpendicular_swipes = True
|
||||||
carousel.data_index = 0
|
carousel.data_index = 0
|
||||||
|
@ -1907,7 +1892,7 @@ class Allmails(Screen):
|
||||||
state.kivyapp.root.children[2].children[0].ids.allmail_cnt.badge_text = str(len(all_mails))
|
state.kivyapp.root.children[2].children[0].ids.allmail_cnt.badge_text = str(len(all_mails))
|
||||||
state.all_count = str(len(all_mails))
|
state.all_count = str(len(all_mails))
|
||||||
for item in all_mails:
|
for item in all_mails:
|
||||||
meny = ThreeLineAvatarIconListItem(
|
meny = TwoLineAvatarIconListItem(
|
||||||
text=item[1],
|
text=item[1],
|
||||||
secondary_text=item[2][:50] + '........' if len(
|
secondary_text=item[2][:50] + '........' if len(
|
||||||
item[2]) >= 50 else (
|
item[2]) >= 50 else (
|
||||||
|
@ -1920,10 +1905,7 @@ class Allmails(Screen):
|
||||||
meny.bind(on_press=partial(
|
meny.bind(on_press=partial(
|
||||||
self.mail_detail, item[5], item[4]))
|
self.mail_detail, item[5], item[4]))
|
||||||
carousel = Carousel(direction='right')
|
carousel = Carousel(direction='right')
|
||||||
if platform == 'android':
|
carousel.height = meny.height
|
||||||
carousel.height = 150
|
|
||||||
elif platform == 'linux':
|
|
||||||
carousel.height = meny.height - 10
|
|
||||||
carousel.size_hint_y = None
|
carousel.size_hint_y = None
|
||||||
carousel.ignore_perpendicular_swipes = True
|
carousel.ignore_perpendicular_swipes = True
|
||||||
carousel.data_index = 0
|
carousel.data_index = 0
|
||||||
|
|
Reference in New Issue
Block a user