mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Pass correct length to the upload function
This commit is contained in:
parent
71a9e2ce1c
commit
31f8aa4888
1 changed files with 1 additions and 2 deletions
|
|
@ -178,7 +178,6 @@ public class UploadService extends IntentService {
|
|||
RemoteViews notificationView;
|
||||
Media media;
|
||||
InputStream file = null;
|
||||
long length = 0;
|
||||
media = (Media)intent.getParcelableExtra(EXTRA_MEDIA);
|
||||
|
||||
String notificationTag = media.getMediaUri().toString();
|
||||
|
|
@ -227,7 +226,7 @@ public class UploadService extends IntentService {
|
|||
String.format(getString(R.string.upload_progress_notification_title_finishing), media.getFileName()),
|
||||
media
|
||||
);
|
||||
result = api.upload(media.getFileName(), file, length, media.getPageContents(), media.getEditSummary(), notificationUpdater);
|
||||
result = api.upload(media.getFileName(), file, media.getLength(), media.getPageContents(), media.getEditSummary(), notificationUpdater);
|
||||
} catch (IOException e) {
|
||||
Log.d("Commons", "I have a network fuckup");
|
||||
stopForeground(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue