Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 587620cc authored by James Wei's avatar James Wei Committed by Gerrit Code Review
Browse files

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

parents 618edf7f 5be80641
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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;