mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-24 15:25:22 -04:00
Mitigated performance issues related to SQLite3 randomly hanging for a second on Android
This commit is contained in:
parent
4982e37231
commit
75edbf94b9
4 changed files with 322 additions and 197 deletions
|
@ -99,8 +99,6 @@ class Conversations():
|
|||
unread = conv["unread"]
|
||||
|
||||
if not context_dest in self.added_item_dests:
|
||||
i_s = time.time()
|
||||
|
||||
iconl = IconLeftWidget(icon=self.trust_icon(context_dest, unread), on_release=self.app.conversation_action)
|
||||
item = OneLineAvatarIconListItem(text=self.app.sideband.peer_display_name(context_dest), on_release=self.app.conversation_action)
|
||||
item.add_widget(iconl)
|
||||
|
@ -280,8 +278,6 @@ class Conversations():
|
|||
self.added_item_dests.append(context_dest)
|
||||
self.list.add_widget(item)
|
||||
|
||||
RNS.log("Created item in "+RNS.prettytime(time.time()-i_s), RNS.LOG_DEBUG)
|
||||
|
||||
else:
|
||||
for w in self.list.children:
|
||||
if w.sb_uid == context_dest:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue