diff options
author | bigbiff bigbiff <bigbiff@teamw.in> | 2014-09-03 00:59:01 +0200 |
---|---|---|
committer | bigbiff bigbiff <bigbiff@teamw.in> | 2014-09-03 03:44:49 +0200 |
commit | c7eee6fef0263ed4eb5aa0d934a0a8c972d41b30 (patch) | |
tree | a994f2110aeeb58ef2bc1f23c31f695cd840ac46 /gui/devices/portrait | |
parent | Fix derp (diff) | |
download | android_bootable_recovery-c7eee6fef0263ed4eb5aa0d934a0a8c972d41b30.tar android_bootable_recovery-c7eee6fef0263ed4eb5aa0d934a0a8c972d41b30.tar.gz android_bootable_recovery-c7eee6fef0263ed4eb5aa0d934a0a8c972d41b30.tar.bz2 android_bootable_recovery-c7eee6fef0263ed4eb5aa0d934a0a8c972d41b30.tar.lz android_bootable_recovery-c7eee6fef0263ed4eb5aa0d934a0a8c972d41b30.tar.xz android_bootable_recovery-c7eee6fef0263ed4eb5aa0d934a0a8c972d41b30.tar.zst android_bootable_recovery-c7eee6fef0263ed4eb5aa0d934a0a8c972d41b30.zip |
Diffstat (limited to 'gui/devices/portrait')
-rw-r--r-- | gui/devices/portrait/res/portrait.xml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gui/devices/portrait/res/portrait.xml b/gui/devices/portrait/res/portrait.xml index 0be685517..e07a217bf 100644 --- a/gui/devices/portrait/res/portrait.xml +++ b/gui/devices/portrait/res/portrait.xml @@ -2146,6 +2146,32 @@ <object type="button"> <highlight color="%highlight_color%" /> <conditions> + <condition var1="tw_has_mtp" var2="1" /> + <condition var1="tw_mtp_enabled" var2="0" /> + </conditions> + <placement x="%col2_x%" y="row4_y" /> + <font resource="font" color="%button_text_color%" /> + <text>Enable MTP</text> + <image resource="main_button" /> + <action function="startmtp"></action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <conditions> + <condition var1="tw_has_mtp" var2="1" /> + <condition var1="tw_mtp_enabled" var2="1" /> + </conditions> + <placement x="%col2_x%" y="row4_y" /> + <font resource="font" color="%button_text_color%" /> + <text>Disable MTP</text> + <image resource="main_button" /> + <action function="stopmtp"></action> + </object> + + <object type="button"> + <highlight color="%highlight_color%" /> + <conditions> <condition var1="tw_is_encrypted" var2="1" /> <condition var1="tw_is_decrypted" var2="0" /> </conditions> @@ -2201,6 +2227,7 @@ <object type="action"> <action function="mount">usb</action> + <action function="set">tw_busy=1</action> </object> <object type="template" name="footer" /> @@ -2213,6 +2240,7 @@ <object type="action"> <action function="page">mount</action> + <action function="set">tw_busy=0</action> </object> </page> |