summaryrefslogtreecommitdiffstats
path: root/gui/devices/portrait
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2015-05-30 21:52:16 +0200
committerEthan Yonker <dees_troy@teamw.in>2015-05-30 21:52:21 +0200
commitd6966f44267f53da876642522a9e705b0324072a (patch)
treea0d57e0332d8ccca9fdef18c8c643bf5e708ff4f /gui/devices/portrait
parentremove useless memset and \n (diff)
downloadandroid_bootable_recovery-d6966f44267f53da876642522a9e705b0324072a.tar
android_bootable_recovery-d6966f44267f53da876642522a9e705b0324072a.tar.gz
android_bootable_recovery-d6966f44267f53da876642522a9e705b0324072a.tar.bz2
android_bootable_recovery-d6966f44267f53da876642522a9e705b0324072a.tar.lz
android_bootable_recovery-d6966f44267f53da876642522a9e705b0324072a.tar.xz
android_bootable_recovery-d6966f44267f53da876642522a9e705b0324072a.tar.zst
android_bootable_recovery-d6966f44267f53da876642522a9e705b0324072a.zip
Diffstat (limited to 'gui/devices/portrait')
-rw-r--r--gui/devices/portrait/res/portrait.xml21
1 files changed, 9 insertions, 12 deletions
diff --git a/gui/devices/portrait/res/portrait.xml b/gui/devices/portrait/res/portrait.xml
index 9ffd6e44e..cf113efd7 100644
--- a/gui/devices/portrait/res/portrait.xml
+++ b/gui/devices/portrait/res/portrait.xml
@@ -2130,7 +2130,7 @@
<condition var1="tw_mount_system_ro" op="=" var2="0" />
<text>Only mount system read-only</text>
<image resource="checkbox_false" />
- <action function="mountsystemtoggle"></action>
+ <action function="mountsystemtoggle">1</action>
</object>
<object type="button">
@@ -2207,18 +2207,15 @@
</object>
<object type="action">
- <conditions>
- <condition var1="tw_operation_state" var2="1" />
- <condition var1="tw_lifetime_writes" var2="1" />
- </conditions>
- <action function="page">mount</action>
+ <condition var1="tw_lifetime_writes" var2="1" />
+ <actions>
+ <action function="mountsystemtoggle">0</action>
+ <action function="page">mount</action>
+ </actions>
</object>
<object type="action">
- <conditions>
- <condition var1="tw_operation_state" var2="1" />
- <condition var1="tw_lifetime_writes" var2="0" />
- </conditions>
+ <condition var1="tw_lifetime_writes" var2="0" />
<actions>
<action function="set">tw_back=mount</action>
<action function="page">system_readonly</action>
@@ -3722,7 +3719,7 @@
<placement x="%col_center_x%" y="%row10_text_y%" />
<text>Keep Read Only</text>
<actions>
- <action function="set">tw_mount_system_ro=1</action>
+ <action function="mountsystemtoggle">1</action>
<action function="set">tw_page_done=1</action>
<action function="page">%tw_back%</action>
</actions>
@@ -3731,7 +3728,7 @@
<object type="slider">
<text>Swipe to Allow Modifications</text>
<actions>
- <action function="set">tw_mount_system_ro=0</action>
+ <action function="mountsystemtoggle">0</action>
<action function="set">tw_page_done=1</action>
<action function="page">%tw_back%</action>
</actions>