Merge pull request #83 from jaicis/Chatroom
Fixed android app crashing and build crashing issue
This commit is contained in:
commit
64c160329e
|
@ -132,7 +132,7 @@
|
||||||
background_normal: ''
|
background_normal: ''
|
||||||
background_color: app.theme_cls.primary_color
|
background_color: app.theme_cls.primary_color
|
||||||
#background_color: (0.62,0.67,0.72,1)
|
#background_color: (0.62,0.67,0.72,1)
|
||||||
values: app.variable_1
|
# values: app.variable_1
|
||||||
on_text:app.getCurrentAccountData(self.text)
|
on_text:app.getCurrentAccountData(self.text)
|
||||||
# Image:
|
# Image:
|
||||||
# source: app.get_default_image()
|
# source: app.get_default_image()
|
||||||
|
|
|
@ -532,7 +532,10 @@ class MyAddress(Screen):
|
||||||
try:
|
try:
|
||||||
meny.canvas.children[6].rgba = [0, 0, 0, 0] if is_enable == 'true' else [0.5, 0.5, 0.5, 0.5]
|
meny.canvas.children[6].rgba = [0, 0, 0, 0] if is_enable == 'true' else [0.5, 0.5, 0.5, 0.5]
|
||||||
except Exception:
|
except Exception:
|
||||||
meny.canvas.children[9].rgba = [0, 0, 0, 0] if is_enable == 'true' else [0.5, 0.5, 0.5, 0.5]
|
try:
|
||||||
|
meny.canvas.children[9].rgba = [0, 0, 0, 0] if is_enable == 'true' else [0.5, 0.5, 0.5, 0.5]
|
||||||
|
except Exception as e:
|
||||||
|
print('Exception: ', e)
|
||||||
meny.add_widget(AvatarSampleWidget(
|
meny.add_widget(AvatarSampleWidget(
|
||||||
source=state.imageDir + '/text_images/{}.png'.format(
|
source=state.imageDir + '/text_images/{}.png'.format(
|
||||||
avatarImageFirstLetter(item['text'].strip()))))
|
avatarImageFirstLetter(item['text'].strip()))))
|
||||||
|
@ -620,6 +623,7 @@ class MyAddress(Screen):
|
||||||
self.init_ui()
|
self.init_ui()
|
||||||
self.ids.refresh_layout.refresh_done()
|
self.ids.refresh_layout.refresh_done()
|
||||||
self.tick = 0
|
self.tick = 0
|
||||||
|
Clock.schedule_once(self.address_permision_callback, 0)
|
||||||
Clock.schedule_once(refresh_callback, 1)
|
Clock.schedule_once(refresh_callback, 1)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@ -1948,24 +1952,25 @@ class NavigateApp(MDApp):
|
||||||
|
|
||||||
def getCurrentAccountData(self, text):
|
def getCurrentAccountData(self, text):
|
||||||
"""Get Current Address Account Data"""
|
"""Get Current Address Account Data"""
|
||||||
if os.path.exists(state.imageDir + '/default_identicon/{}.png'.format(text)):
|
if text != '':
|
||||||
self.load_selected_Image(text)
|
if os.path.exists(state.imageDir + '/default_identicon/{}.png'.format(text)):
|
||||||
else:
|
self.load_selected_Image(text)
|
||||||
self.set_identicon(text)
|
else:
|
||||||
self.root.ids.content_drawer.ids.reset_image.opacity = 0
|
self.set_identicon(text)
|
||||||
self.root.ids.content_drawer.ids.reset_image.disabled = True
|
self.root.ids.content_drawer.ids.reset_image.opacity = 0
|
||||||
address_label = self.current_address_label(
|
self.root.ids.content_drawer.ids.reset_image.disabled = True
|
||||||
BMConfigParser().get(text, 'label'), text)
|
address_label = self.current_address_label(
|
||||||
self.root_window.children[1].ids.toolbar.title = address_label
|
BMConfigParser().get(text, 'label'), text)
|
||||||
state.association = text
|
self.root_window.children[1].ids.toolbar.title = address_label
|
||||||
state.searcing_text = ''
|
state.association = text
|
||||||
LoadingPopup().open()
|
state.searcing_text = ''
|
||||||
self.set_message_count()
|
LoadingPopup().open()
|
||||||
for nav_obj in self.root.ids.content_drawer.children[
|
self.set_message_count()
|
||||||
0].children[0].children[0].children:
|
for nav_obj in self.root.ids.content_drawer.children[
|
||||||
nav_obj.active = True if nav_obj.text == 'Inbox' else False
|
0].children[0].children[0].children:
|
||||||
self.fileManagerSetting()
|
nav_obj.active = True if nav_obj.text == 'Inbox' else False
|
||||||
Clock.schedule_once(self.setCurrentAccountData, 0.5)
|
self.fileManagerSetting()
|
||||||
|
Clock.schedule_once(self.setCurrentAccountData, 0.5)
|
||||||
|
|
||||||
def fileManagerSetting(self):
|
def fileManagerSetting(self):
|
||||||
"""This method is for file manager setting"""
|
"""This method is for file manager setting"""
|
||||||
|
@ -3183,6 +3188,8 @@ class CustomSpinner(Spinner):
|
||||||
"""Method used for setting size of spinner"""
|
"""Method used for setting size of spinner"""
|
||||||
super(CustomSpinner, self).__init__(*args, **kwargs)
|
super(CustomSpinner, self).__init__(*args, **kwargs)
|
||||||
self.dropdown_cls.max_height = Window.size[1] / 3
|
self.dropdown_cls.max_height = Window.size[1] / 3
|
||||||
|
self.values = list(addr for addr in BMConfigParser().addresses()
|
||||||
|
if BMConfigParser().get(str(addr), 'enabled') == 'true')
|
||||||
|
|
||||||
|
|
||||||
class Allmails(Screen):
|
class Allmails(Screen):
|
||||||
|
|
|
@ -41,7 +41,7 @@ requirements =
|
||||||
android,
|
android,
|
||||||
openssl,
|
openssl,
|
||||||
sqlite3,
|
sqlite3,
|
||||||
kivy,
|
kivy==1.11.1,
|
||||||
pyjnius==1.2.1,
|
pyjnius==1.2.1,
|
||||||
libiconv,
|
libiconv,
|
||||||
libzbar,
|
libzbar,
|
||||||
|
|
Reference in New Issue
Block a user