summaryrefslogtreecommitdiffstats
path: root/gui/devices/landscape
diff options
context:
space:
mode:
authorthat <github@that.at>2014-12-21 22:27:40 +0100
committerDees Troy <dees_troy@teamw.in>2014-12-22 04:52:37 +0100
commita3d31fbe385094400719e9a7a79965ff5da9f4b4 (patch)
tree2f4bb3239063c127dc37089b0cc85f10bb43fa31 /gui/devices/landscape
parentAllow non datamedia devices to wipe encryption (diff)
downloadandroid_bootable_recovery-a3d31fbe385094400719e9a7a79965ff5da9f4b4.tar
android_bootable_recovery-a3d31fbe385094400719e9a7a79965ff5da9f4b4.tar.gz
android_bootable_recovery-a3d31fbe385094400719e9a7a79965ff5da9f4b4.tar.bz2
android_bootable_recovery-a3d31fbe385094400719e9a7a79965ff5da9f4b4.tar.lz
android_bootable_recovery-a3d31fbe385094400719e9a7a79965ff5da9f4b4.tar.xz
android_bootable_recovery-a3d31fbe385094400719e9a7a79965ff5da9f4b4.tar.zst
android_bootable_recovery-a3d31fbe385094400719e9a7a79965ff5da9f4b4.zip
Diffstat (limited to 'gui/devices/landscape')
-rw-r--r--gui/devices/landscape/res/landscape.xml73
1 files changed, 63 insertions, 10 deletions
diff --git a/gui/devices/landscape/res/landscape.xml b/gui/devices/landscape/res/landscape.xml
index b8803026a..8f557aa33 100644
--- a/gui/devices/landscape/res/landscape.xml
+++ b/gui/devices/landscape/res/landscape.xml
@@ -2764,16 +2764,7 @@
<font resource="font" color="%button_text_color%" />
<text>Fix Permissions</text>
<image resource="main_button" />
- <actions>
- <action function="set">tw_back=advanced</action>
- <action function="set">tw_action=fixpermissions</action>
- <action function="set">tw_text1=Fix Permissions?</action>
- <action function="set">tw_action_text1=Fixing Permissions...</action>
- <action function="set">tw_complete_text1=Fix Permissions Complete</action>
- <action function="set">tw_slider_text=Swipe to Confirm</action>
- <action function="set">tw_show_reboot=1</action>
- <action function="page">confirm_action</action>
- </actions>
+ <action function="page">fixperms</action>
</object>
<object type="button">
@@ -3899,6 +3890,68 @@
<object type="template" name="footer" />
</page>
+ <page name="fixperms">
+ <object type="template" name="header" />
+
+ <object type="text" color="%text_color%">
+ <font resource="font" />
+ <placement x="%center_x%" y="%row1_text_y%" placement="5"/>
+ <text>Fix Permissions</text>
+ </object>
+
+ <object type="text" color="%text_color%">
+ <font resource="font" />
+ <placement x="%col2_x%" y="%row2_text_y%" />
+ <text>Note: Fixing permissions is rarely needed.</text>
+ </object>
+
+ <object type="checkbox">
+ <placement x="%col2_x%" y="%row3_text_y%" />
+ <font resource="font" color="%text_color%" />
+ <text>Also fix SELinux contexts</text>
+ <data variable="tw_fixperms_restorecon" />
+ <image checked="checkbox_true" unchecked="checkbox_false" />
+ </object>
+
+ <object type="text" color="%text_color%">
+ <font resource="font" />
+ <placement x="%col2_x%" y="%row4_text_y%" />
+ <text>Fixing SELinux contexts may cause your device to not boot properly.</text>
+ </object>
+
+ <object type="slider">
+ <placement x="%slider_x%" y="%slider_y%" />
+ <resource base="slider" used="slider-used" touch="slider-touch" />
+ <actions>
+ <action function="set">tw_back=advanced</action>
+ <action function="set">tw_action=fixpermissions</action>
+ <action function="set">tw_action_text1=Fixing Permissions...</action>
+ <action function="set">tw_complete_text1=Fix Permissions Complete</action>
+ <action function="set">tw_slider_text=Swipe to Confirm</action>
+ <action function="set">tw_show_reboot=1</action>
+ <action function="page">action_page</action>
+ </actions>
+ </object>
+
+ <object type="text" color="%text_color%">
+ <font resource="font" />
+ <placement x="%center_x%" y="%slider_text_y%" placement="4" />
+ <text>Swipe to Fix Permissions</text>
+ </object>
+
+ <object type="action">
+ <touch key="home" />
+ <action function="page">main</action>
+ </object>
+
+ <object type="action">
+ <touch key="back" />
+ <action function="page">advanced</action>
+ </object>
+
+ <object type="template" name="footer" />
+ </page>
+
<page name="installsu">
<object type="template" name="header" />