From 908dd2513944490fbfca47f3081f126764605b62 Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Wed, 25 May 2016 02:26:50 -0500 Subject: GUI: Use standard routine for auto-reboot If 'reboot after install' is enabled, follow the standard reboot routine to process 'No OS' and 'Install SuperSU' checks. Since the system reboot routine is repeated several times, it has been separated into its own routine. Change-Id: I4c1882ecb8dc2d153ec2378b2e0973ab1a2a8278 --- gui/theme/common/portrait.xml | 57 +++++++++++++++++-------------------------- 1 file changed, 22 insertions(+), 35 deletions(-) (limited to 'gui/theme/common/portrait.xml') diff --git a/gui/theme/common/portrait.xml b/gui/theme/common/portrait.xml index dbd43054b..e9be654a6 100644 --- a/gui/theme/common/portrait.xml +++ b/gui/theme/common/portrait.xml @@ -386,9 +386,9 @@ - + {@install_reboot_chk=Reboot after installation is complete} - + @@ -500,18 +500,7 @@ {@reboot_system_btn=Reboot System} tw_back=main2 - tw_action=reboot - tw_action_param=system - tw_has_action2=0 - tw_text1={@no_os1=No OS Installed! Are you} - tw_text2={@no_osrb=sure you wish to reboot?} - tw_text3= - tw_text4= - tw_action_text1={@rebooting=Rebooting...} - tw_action_text2= - tw_complete_text1={@rebooting=Rebooting...} - tw_slider_text={@swipe_reboot=Swipe to Reboot} - rebootcheck + reboot_system_routine @@ -686,6 +675,23 @@ + + + tw_action=reboot + tw_action_param=system + tw_has_action2=0 + tw_text1={@no_os1=No OS Installed! Are you} + tw_text2={@no_osrb=sure you wish to reboot?} + tw_text3= + tw_text4= + tw_action_text1={@rebooting=Rebooting...} + tw_action_text2= + tw_complete_text1={@rebooting=Rebooting...} + tw_slider_text={@swipe_reboot=Swipe to Reboot} + rebootcheck + + +