Merge "use updated mStorage for new MtpObject when copy file between storages"
This commit is contained in:
@@ -229,9 +229,16 @@ public class MtpStorageManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setParent(MtpObject parent) {
|
private void setParent(MtpObject parent) {
|
||||||
|
if (this.getStorageId() != parent.getStorageId()) {
|
||||||
|
mStorage = Preconditions.checkNotNull(parent.getStorage());
|
||||||
|
}
|
||||||
mParent = parent;
|
mParent = parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private MtpStorage getStorage() {
|
||||||
|
return mStorage;
|
||||||
|
}
|
||||||
|
|
||||||
private void setDir(boolean dir) {
|
private void setDir(boolean dir) {
|
||||||
if (dir != mIsDir) {
|
if (dir != mIsDir) {
|
||||||
mIsDir = dir;
|
mIsDir = dir;
|
||||||
|
|||||||
Reference in New Issue
Block a user