X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/aa14479e5b2eefdbd654465ce2c9c90b171f6355..5bd3fd6273667db1e44fe20627ba23e7b5a7ab29:/src/eu/alefzero/webdav/WebdavClient.java diff --git a/src/eu/alefzero/webdav/WebdavClient.java b/src/eu/alefzero/webdav/WebdavClient.java index f3aca3e5..df30dcb6 100644 --- a/src/eu/alefzero/webdav/WebdavClient.java +++ b/src/eu/alefzero/webdav/WebdavClient.java @@ -1,9 +1,10 @@ /* ownCloud Android client application * Copyright (C) 2011 Bartek Przybylski + * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or + * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -98,7 +99,7 @@ public class WebdavClient extends HttpClient { int readResult; while ((readResult = bis.read(bytes)) != -1) { if (mDataTransferListener != null) - mDataTransferListener.transferProgress(readResult); + mDataTransferListener.onTransferProgress(readResult); fos.write(bytes, 0, readResult); } fos.close(); @@ -165,7 +166,7 @@ public class WebdavClient extends HttpClient { try { File f = new File(localFile); FileRequestEntity entity = new FileRequestEntity(f, contentType); - entity.setOnDatatransferProgressListener(mDataTransferListener); + entity.addDatatransferProgressListener(mDataTransferListener); put.setRequestEntity(entity); status = executeMethod(put); @@ -336,5 +337,5 @@ public class WebdavClient extends HttpClient { public Uri getBaseUri() { return mUri; } - + }