mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-10 07:48:30 -04:00
Another fix for customapp settings
This commit is contained in:
parent
4ef289a9b2
commit
c0e6b94e7a
@ -338,7 +338,7 @@ def step_update_xml_nodes(jsdata, **options):
|
|||||||
'preferences.xml')
|
'preferences.xml')
|
||||||
soup = soup = BeautifulSoup(open(preferences_xml, 'r'),
|
soup = soup = BeautifulSoup(open(preferences_xml, 'r'),
|
||||||
'xml', from_encoding='utf-8')
|
'xml', from_encoding='utf-8')
|
||||||
item = soup.find('org.kiwix.kiwixmobile.settings.CustomSwitchPreference')
|
for item in soup.findAll('org.kiwix.kiwixmobile.settings.CustomSwitchPreference'):
|
||||||
item.name = '{}.settings.CustomSwitchPreference'.format(jsdata.get('package'))
|
item.name = '{}.settings.CustomSwitchPreference'.format(jsdata.get('package'))
|
||||||
flushxml(soup, 'PreferenceScreen', preferences_xml, head=False)
|
flushxml(soup, 'PreferenceScreen', preferences_xml, head=False)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user