Fix storage selection with adopted storage

Change-Id: Ifcba4e668579c3684df9e47e1c3faf5f4d1f3e83
This commit is contained in:
Ethan Yonker
2016-02-18 22:04:18 -06:00
parent 506fc803bf
commit eadfd2eb68

View File

@@ -593,7 +593,7 @@ void DataManager::SetBackupFolder()
SetValue("tw_storage_free_size", free_space);
string zip_path, zip_root, storage_path;
GetValue(TW_ZIP_LOCATION_VAR, zip_path);
if (partition->Has_Data_Media)
if (partition->Has_Data_Media && !partition->Symlink_Mount_Point.empty())
storage_path = partition->Symlink_Mount_Point;
else
storage_path = partition->Storage_Path;