18
18
StringProperty
19
19
)
20
20
from kivy .uix .screenmanager import Screen
21
-
21
+ from kivy . app import App
22
22
23
23
import state
24
24
25
-
26
25
from bitmessagekivy .get_platform import platform
27
26
from bitmessagekivy import kivy_helper_search
28
27
from bitmessagekivy .baseclass .common import (
@@ -49,6 +48,8 @@ def __init__(self, *args, **kwargs):
49
48
"""Getting AddressBook Details"""
50
49
super (AddressBook , self ).__init__ (* args , ** kwargs )
51
50
self .addbook_popup = None
51
+ self .kivy_running_app = App .get_running_app ()
52
+ self .kivy_state = self .kivy_running_app .kivy_state_obj
52
53
Clock .schedule_once (self .init_ui , 0 )
53
54
54
55
def init_ui (self , dt = 0 ):
@@ -58,10 +59,10 @@ def init_ui(self, dt=0):
58
59
59
60
def loadAddresslist (self , account , where = "" , what = "" ):
60
61
"""Clock Schdule for method AddressBook"""
61
- if state .searching_text :
62
+ if self . kivy_state .searching_text :
62
63
self .ids .scroll_y .scroll_y = 1.0
63
64
where = ['label' , 'address' ]
64
- what = state .searching_text
65
+ what = self . kivy_state .searching_text
65
66
xAddress = ''
66
67
self .ids .tag_label .text = ''
67
68
self .queryreturn = kivy_helper_search .search_sql (
0 commit comments