Replace "Reboot System" with "Reboot" for A/B devices
Users may want to reboot to recovery or bootloader after flashing
A/B zips to switch slots and install additional zips.
Change-Id: I128ceff6d0b361921c7ad7623eab93044e942d18
diff --git a/gui/theme/common/watch.xml b/gui/theme/common/watch.xml
index 05b7bd2..70ccf38 100755
--- a/gui/theme/common/watch.xml
+++ b/gui/theme/common/watch.xml
@@ -751,6 +751,7 @@
</button>
<button style="main_button_half_height">
+ <condition var1="tw_ab_device" var2="0"/>
<placement x="%col1_x_right%" y="%row13_y%"/>
<text>{@reboot_system_btn=Reboot System}</text>
<actions>
@@ -759,6 +760,16 @@
</actions>
</button>
+ <button style="main_button_half_height">
+ <condition var1="tw_ab_device" var2="1"/>
+ <placement x="%col1_x_right%" y="%row13_y%"/>
+ <text>{@reboot_btn=Reboot}</text>
+ <actions>
+ <action function="set">tw_back=main2</action>
+ <action function="page">reboot</action>
+ </actions>
+ </button>
+
<action>
<touch key="back"/>
<actions>