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/landscape.xml | 54 +++++++++++++++------------------------ gui/theme/common/portrait.xml | 57 ++++++++++++++++------------------------- gui/theme/common/watch.xml | 58 +++++++++++++++++------------------------- 3 files changed, 65 insertions(+), 104 deletions(-) (limited to 'gui/theme') diff --git a/gui/theme/common/landscape.xml b/gui/theme/common/landscape.xml index df68a3a63..5c92fccd3 100644 --- a/gui/theme/common/landscape.xml +++ b/gui/theme/common/landscape.xml @@ -548,18 +548,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 @@ -734,6 +723,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 + + +