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

Commit 838e4ecb authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am d0604565: am d2388b50: am 53ad027c: Merge "MtpStorage: correct the size of...

am d0604565: am d2388b50: am 53ad027c: Merge "MtpStorage: correct the size of reserve space for MTP"

* commit 'd0604565':
  MtpStorage: correct the size of reserve space for MTP
parents af3fc622 d0604565
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ public class MtpStorage {
        mStorageId = volume.getStorageId();
        mPath = volume.getPath();
        mDescription = context.getResources().getString(volume.getDescriptionId());
        mReserveSpace = volume.getMtpReserveSpace();
        mReserveSpace = volume.getMtpReserveSpace() * 1024 * 1024;
        mRemovable = volume.isRemovable();
        mMaxFileSize = volume.getMaxFileSize();
    }
@@ -87,7 +87,7 @@ public class MtpStorage {
     * Returns the amount of space to reserve on the storage file system.
     * This can be set to a non-zero value to prevent MTP from filling up the entire storage.
     *
     * @return the storage unit description
     * @return reserved space in bytes.
     */
    public final long getReserveSpace() {
        return mReserveSpace;