File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public MtpStorage(StorageVolume volume, Context context) {
3939 mStorageId = volume .getStorageId ();
4040 mPath = volume .getPath ();
4141 mDescription = context .getResources ().getString (volume .getDescriptionId ());
42- mReserveSpace = volume .getMtpReserveSpace ();
42+ mReserveSpace = volume .getMtpReserveSpace () * 1024 * 1024 ;
4343 mRemovable = volume .isRemovable ();
4444 mMaxFileSize = volume .getMaxFileSize ();
4545 }
@@ -87,7 +87,7 @@ public final String getDescription() {
8787 * Returns the amount of space to reserve on the storage file system.
8888 * This can be set to a non-zero value to prevent MTP from filling up the entire storage.
8989 *
90- * @return the storage unit description
90+ * @return reserved space in bytes.
9191 */
9292 public final long getReserveSpace () {
9393 return mReserveSpace ;
You can’t perform that action at this time.
0 commit comments