1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-11 16:33:03 +00:00

make propfind operation run without errors

This commit is contained in:
DerSchabi
2018-05-22 09:36:30 +02:00
committed by davigonz
parent d593474113
commit ca2eff6647
7 changed files with 64 additions and 64 deletions
@@ -84,21 +84,14 @@ public class MainActivity extends Activity implements OnRemoteOperationListener,
mHandler = new Handler();
Uri serverUri = Uri.parse(getString(R.string.server_base_url));
final Uri serverUri = Uri.parse(getString(R.string.server_base_url));
mClient = OwnCloudClientFactory.createOwnCloudClient(serverUri, this, true);
// mClient.setCredentials(
// OwnCloudCredentialsFactory.newBasicCredentials(
// getString(R.string.username),
// getString(R.string.password)
// )
// );
OCAccount ocAccount = new OCAccount(serverUri,
OwnCloudCredentialsFactory.newBasicCredentials(
getString(R.string.username),
getString(R.string.password)
)
);
getString(R.string.password)));
mOCContext = new OCContext(ocAccount);
@@ -164,9 +157,9 @@ public class MainActivity extends Activity implements OnRemoteOperationListener,
private void startRefresh() {
PropfindOperation propfindOperation = new PropfindOperation(mOCContext, FileUtils.PATH_SEPARATOR);
final PropfindOperation propfindOperation = new PropfindOperation(mOCContext, FileUtils.PATH_SEPARATOR);
propfindOperation.exec();
Thread tread = new Thread(() -> propfindOperation.exec());
// ReadRemoteFolderOperation refreshOperation = new ReadRemoteFolderOperation(FileUtils.PATH_SEPARATOR);
// refreshOperation.execute(mClient, this, mHandler);
}