Merge "use updated mStorage for new MtpObject when copy file between storages"

This commit is contained in:
James Wei
2020-06-02 06:14:31 +00:00
committed by Gerrit Code Review

View File

@@ -229,9 +229,16 @@ public class MtpStorageManager {
}
private void setParent(MtpObject parent) {
if (this.getStorageId() != parent.getStorageId()) {
mStorage = Preconditions.checkNotNull(parent.getStorage());
}
mParent = parent;
}
private MtpStorage getStorage() {
return mStorage;
}
private void setDir(boolean dir) {
if (dir != mIsDir) {
mIsDir = dir;