diff options
| author | 2012-08-10 09:26:47 -0700 | |
|---|---|---|
| committer | 2012-08-10 09:26:47 -0700 | |
| commit | d2388b50a5c16b920bdd656448107a21e49d753b (patch) | |
| tree | 3125b509d45fcc6258958ed7f4e29a0b19af36ae | |
| parent | 3401c2e9e1343c964eb9495cbf8568172c14ac82 (diff) | |
| parent | 53ad027c46bf578e26e5db70319b17a671ce8a36 (diff) | |
am 53ad027c: Merge "MtpStorage: correct the size of reserve space for MTP"
* commit '53ad027c46bf578e26e5db70319b17a671ce8a36':
MtpStorage: correct the size of reserve space for MTP
| -rw-r--r-- | media/java/android/mtp/MtpStorage.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/java/android/mtp/MtpStorage.java b/media/java/android/mtp/MtpStorage.java index 2f47aadecbff..9cf65a373dcd 100644 --- a/media/java/android/mtp/MtpStorage.java +++ b/media/java/android/mtp/MtpStorage.java @@ -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; |