summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2014-01-23 02:46:29 +0100
committerGerrit Code Review <gerrit2@gerrit>2014-02-12 17:30:51 +0100
commitf08ada848363553087b51b59a0a3f883d3344c74 (patch)
tree20880b2f17883553ef887cd2ead2d6dc0556d244 /partitionmanager.cpp
parentMerge "Add vibrations to Checkbox, Fileselect, Listbox and Partitionlist" into android-4.4 (diff)
downloadandroid_bootable_recovery-f08ada848363553087b51b59a0a3f883d3344c74.tar
android_bootable_recovery-f08ada848363553087b51b59a0a3f883d3344c74.tar.gz
android_bootable_recovery-f08ada848363553087b51b59a0a3f883d3344c74.tar.bz2
android_bootable_recovery-f08ada848363553087b51b59a0a3f883d3344c74.tar.lz
android_bootable_recovery-f08ada848363553087b51b59a0a3f883d3344c74.tar.xz
android_bootable_recovery-f08ada848363553087b51b59a0a3f883d3344c74.tar.zst
android_bootable_recovery-f08ada848363553087b51b59a0a3f883d3344c74.zip
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 04dbee967..e8b362cf6 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1829,7 +1829,7 @@ void TWPartitionManager::Get_Partition_List(string ListType, std::vector<Partiti
while (end_pos != string::npos && start_pos < Restore_List.size()) {
restore_path = Restore_List.substr(start_pos, end_pos - start_pos);
if ((restore_part = Find_Partition_By_Path(restore_path)) != NULL) {
- if (restore_part->Backup_Name == "recovery" || restore_part->Is_SubPartition) {
+ if (restore_part->Backup_Name == "recovery" && !restore_part->Can_Be_Backed_Up || restore_part->Is_SubPartition) {
// Don't allow restore of recovery (causes problems on some devices)
// Don't add subpartitions to the list of items
} else {