Another fix for customapp settings

This commit is contained in:
mhutti1 2016-09-28 10:42:47 +01:00
parent 4ef289a9b2
commit c0e6b94e7a

View File

@ -338,8 +338,8 @@ def step_update_xml_nodes(jsdata, **options):
'preferences.xml')
soup = soup = BeautifulSoup(open(preferences_xml, 'r'),
'xml', from_encoding='utf-8')
item = soup.find('org.kiwix.kiwixmobile.settings.CustomSwitchPreference')
item.name = '{}.settings.CustomSwitchPreference'.format(jsdata.get('package'))
for item in soup.findAll('org.kiwix.kiwixmobile.settings.CustomSwitchPreference'):
item.name = '{}.settings.CustomSwitchPreference'.format(jsdata.get('package'))
flushxml(soup, 'PreferenceScreen', preferences_xml, head=False)
# rename AnimatedProgressBar node in res/layout/toolbar.xml