mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 07:16:04 -04:00
Fix gen build script
This commit is contained in:
parent
90ce78eb72
commit
0e3b2f9e76
@ -357,15 +357,6 @@ def step_update_xml_nodes(jsdata, **options):
|
|||||||
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)
|
||||||
|
|
||||||
# rename AnimatedProgressBar node in res/layout/toolbar.xml
|
|
||||||
toolbar_xml = os.path.join(ANDROID_PATH, 'res', 'layout', 'toolbar.xml')
|
|
||||||
soup = BeautifulSoup(open(toolbar_xml, 'r'),
|
|
||||||
'xml', from_encoding='utf-8')
|
|
||||||
item = soup.find('org.kiwix.kiwixmobile.views.AnimatedProgressBar')
|
|
||||||
item.name = '{}.views.AnimatedProgressBar'.format(jsdata.get('package'))
|
|
||||||
flushxml(soup, 'RelativeLayout', toolbar_xml, head=False)
|
|
||||||
|
|
||||||
|
|
||||||
main_xml = os.path.join(ANDROID_PATH, 'res', 'layout', 'main.xml')
|
main_xml = os.path.join(ANDROID_PATH, 'res', 'layout', 'main.xml')
|
||||||
soup = soup = BeautifulSoup(open(main_xml, 'r'),
|
soup = soup = BeautifulSoup(open(main_xml, 'r'),
|
||||||
'xml', from_encoding='utf-8')
|
'xml', from_encoding='utf-8')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user