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
(cherry picked from commit 90df3de75ef05e014ba363d65a59421a04375e5a)
This commit is contained in:
Chaosmaster
2020-02-07 20:33:43 +01:00
committed by bigbiff
parent a6da6565a0
commit 7b66bf503f
3 changed files with 34 additions and 0 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>