summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2016-01-20 19:08:35 +0100
committerEthan Yonker <dees_troy@teamw.in>2016-02-05 18:47:56 +0100
commit209c96357521c9e1ef44f2264e1cd3ff537f4915 (patch)
treecc13e91215ee51cefc0407e1ee98b2deff5f527b /partition.cpp
parentMore languages, some partial, from Omni crowdin (diff)
downloadandroid_bootable_recovery-209c96357521c9e1ef44f2264e1cd3ff537f4915.tar
android_bootable_recovery-209c96357521c9e1ef44f2264e1cd3ff537f4915.tar.gz
android_bootable_recovery-209c96357521c9e1ef44f2264e1cd3ff537f4915.tar.bz2
android_bootable_recovery-209c96357521c9e1ef44f2264e1cd3ff537f4915.tar.lz
android_bootable_recovery-209c96357521c9e1ef44f2264e1cd3ff537f4915.tar.xz
android_bootable_recovery-209c96357521c9e1ef44f2264e1cd3ff537f4915.tar.zst
android_bootable_recovery-209c96357521c9e1ef44f2264e1cd3ff537f4915.zip
Diffstat (limited to '')
-rw-r--r--partition.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/partition.cpp b/partition.cpp
index c511298ec..df03336c4 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1224,10 +1224,10 @@ bool TWPartition::Wipe(string New_File_System) {
if (Has_Data_Media && recreate_media) {
Recreate_Media_Folder();
}
+ if (Is_Storage && Mount(false))
+ PartitionManager.Add_MTP_Storage(MTP_Storage_ID);
}
- if (Is_Storage) {
- PartitionManager.Add_MTP_Storage(MTP_Storage_ID);
- }
+
return wiped;
}