зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1071116 - totalBytes must be greater than 0 in DownloadManager.addCompletedDownload r=bnicholson
This commit is contained in:
Родитель
8246da0b44
Коммит
7c39f8edbd
|
@ -1835,7 +1835,7 @@ public class GeckoAppShell
|
||||||
true, // Media scanner should scan this
|
true, // Media scanner should scan this
|
||||||
mimeType,
|
mimeType,
|
||||||
f.getAbsolutePath(),
|
f.getAbsolutePath(),
|
||||||
Math.max(0, f.length()),
|
Math.max(1, f.length()), // Some versions of Android require downloads to be at least length 1
|
||||||
false); // Don't show a notification.
|
false); // Don't show a notification.
|
||||||
} else {
|
} else {
|
||||||
Context context = getContext();
|
Context context = getContext();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче