Merge "use updated mStorage for new MtpObject when copy file between storages" am: 587620cc62 am: 7c7680f261 am: 5667f0d272
Original change: undetermined Change-Id: I15d0effc28a2706d91fafe4b9f4da9952b8938a5
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user