diff options
author | Matt Mower <mowerm@gmail.com> | 2016-01-20 19:08:35 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2016-02-05 18:47:56 +0100 |
commit | 209c96357521c9e1ef44f2264e1cd3ff537f4915 (patch) | |
tree | cc13e91215ee51cefc0407e1ee98b2deff5f527b | |
parent | More languages, some partial, from Omni crowdin (diff) | |
download | android_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 |
-rw-r--r-- | partition.cpp | 6 |
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; } |