Skip to content

Commit a1c2513

Browse files
committed
bug with size of cache
1 parent 123955b commit a1c2513

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/immortalplayer/HttpGetProxy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void setPaths(String dirPath, String url, int MaxSize, int maxnum,
139139
dirPath = Environment.getExternalStorageDirectory().getAbsolutePath()
140140
+ dirPath;
141141
new File(dirPath).mkdirs();
142-
long maxsize1 = MaxSize * 1024 * 1024;
142+
long maxsize1 = MaxSize * 1024L * 1024L;
143143
Utils.asynRemoveBufferFile(dirPath, maxnum, maxsize1);
144144
mUrl = url;
145145
file2 = Uri.decode(mUrl.substring(mUrl.lastIndexOf("/") + 1));
@@ -707,4 +707,4 @@ public void run()
707707
}
708708
}
709709
}
710-
}
710+
}

0 commit comments

Comments
 (0)