From 7abc5fe195cfa203d215781e2a04672cebecca1e Mon Sep 17 00:00:00 2001 From: bigbiff Date: Sat, 17 Jan 2015 16:53:12 -0500 Subject: Add cancel backup capability. This will stop the iteration of the partition objects, kill the current twrpTar thread and remove the backup directory. Implement TWAtomicInt class to give us a wrapper that automatically uses mutexes before the read and write to help ensure that the reads and writes will be atomic based on documentation. Change-Id: I645b22bc980a292e9c7202acb24ffd22ebe68c63 --- gui/devices/480x854/res/ui.xml | 1 + gui/devices/landscape/res/landscape.xml | 25 ++++++++++++++++++++++++- gui/devices/portrait/res/portrait.xml | 23 +++++++++++++++++++++++ gui/devices/watch/res/watch.xml | 27 +++++++++++++++++++++++++++ 4 files changed, 75 insertions(+), 1 deletion(-) (limited to 'gui/devices') diff --git a/gui/devices/480x854/res/ui.xml b/gui/devices/480x854/res/ui.xml index dd7efd720..c4ce65f35 100644 --- a/gui/devices/480x854/res/ui.xml +++ b/gui/devices/480x854/res/ui.xml @@ -50,6 +50,7 @@ + diff --git a/gui/devices/landscape/res/landscape.xml b/gui/devices/landscape/res/landscape.xml index f66eb8bb6..eb6d9ddd6 100644 --- a/gui/devices/landscape/res/landscape.xml +++ b/gui/devices/landscape/res/landscape.xml @@ -670,7 +670,7 @@ - + Cancel @@ -2157,6 +2157,17 @@ + + + + + Cancel + + + + + + @@ -2165,6 +2176,7 @@ + tw_back=backup tw_complete_text1=Backup Complete @@ -2173,6 +2185,17 @@ + + + + + tw_back=backup + tw_complete_text1=Backup Cancelled + tw_show_reboot=1 + action_complete + + + diff --git a/gui/devices/portrait/res/portrait.xml b/gui/devices/portrait/res/portrait.xml index bb8e37217..fe6167155 100644 --- a/gui/devices/portrait/res/portrait.xml +++ b/gui/devices/portrait/res/portrait.xml @@ -1867,6 +1867,17 @@ + + + + + Cancel + + + + + + @@ -1875,6 +1886,7 @@ + tw_back=backup tw_complete_text1=Backup Complete @@ -1882,6 +1894,17 @@ action_complete + + + + + + tw_back=backup + tw_complete_text1=Backup Cancelled + tw_show_reboot=1 + action_complete + + diff --git a/gui/devices/watch/res/watch.xml b/gui/devices/watch/res/watch.xml index dc787b37c..49e172e3a 100644 --- a/gui/devices/watch/res/watch.xml +++ b/gui/devices/watch/res/watch.xml @@ -1859,6 +1859,21 @@ + + + + + + + + + Cancel + + + + + + @@ -1867,6 +1882,7 @@ + tw_back=backup tw_complete_text1=Backup Complete @@ -1874,6 +1890,17 @@ action_complete + + + + + + tw_back=backup + tw_complete_text1=Backup Cancelled + tw_show_reboot=1 + action_complete + + -- cgit v1.2.3