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/landscape.xml b/gui/theme/common/landscape.xml
index 230b72f..3af174e 100755
--- a/gui/theme/common/landscape.xml
+++ b/gui/theme/common/landscape.xml
@@ -572,6 +572,7 @@
</button>
<button style="main_button_half_width">
+ <condition var1="tw_ab_device" var2="0"/>
<placement x="%center_x%" y="%row15a_y%"/>
<text>{@reboot_system_btn=Reboot System}</text>
<actions>
@@ -580,6 +581,17 @@
</actions>
</button>
+ <button style="main_button_half_width">
+ <condition var1="tw_ab_device" var2="1"/>
+ <placement x="%center_x%" y="%row15a_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>
diff --git a/gui/theme/common/portrait.xml b/gui/theme/common/portrait.xml
index 8370414..64b8776 100755
--- a/gui/theme/common/portrait.xml
+++ b/gui/theme/common/portrait.xml
@@ -524,6 +524,7 @@
</button>
<button style="main_button_half_height">
+ <condition var1="tw_ab_device" var2="0"/>
<placement x="%center_x%" y="%row21a_y%"/>
<text>{@reboot_system_btn=Reboot System}</text>
<actions>
@@ -532,6 +533,16 @@
</actions>
</button>
+ <button style="main_button_half_height">
+ <condition var1="tw_ab_device" var2="1"/>
+ <placement x="%center_x%" y="%row21a_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>
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>