Fix rewritting of SliderPreference class name for custom apps #3

This commit is contained in:
Emmanuel Engelhart 2016-03-02 20:19:39 +01:00
parent 4b4cf88f7f
commit 2f3d69f608

View File

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