|
|
@ -2421,8 +2421,8 @@ factory('MtpApiFileManager', function (MtpApiManager, $q, $window) { |
|
|
|
cacheFileWriter = fileWriter; |
|
|
|
cacheFileWriter = fileWriter; |
|
|
|
|
|
|
|
|
|
|
|
// var limit = size > 102400 ? 65536 : 4096;
|
|
|
|
// var limit = size > 102400 ? 65536 : 4096;
|
|
|
|
// var limit = size > 30400 ? 524288 : 4096;
|
|
|
|
var limit = size > 30400 ? 524288 : 4096; |
|
|
|
var limit = size > 30400 ? 20480 : 4096; |
|
|
|
// var limit = size > 30400 ? 20480 : 4096;
|
|
|
|
var writeFilePromise = $q.when(), |
|
|
|
var writeFilePromise = $q.when(), |
|
|
|
writeFileDeferred; |
|
|
|
writeFileDeferred; |
|
|
|
for (var offset = 0; offset < size; offset += limit) { |
|
|
|
for (var offset = 0; offset < size; offset += limit) { |
|
|
|