Skip to content

Commit b428f94

Browse files
authored
Merge pull request #997 from nextcloud/fixSampleClient
set userId to username
2 parents d2b81dd + b8cdd21 commit b428f94

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sample_client/src/main/java/com/owncloud/android/lib/sampleclient/MainActivity.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,12 @@ public void onCreate(Bundle savedInstanceState) {
8181
Uri serverUri = Uri.parse(getString(R.string.server_base_url));
8282
mClient = OwnCloudClientFactory.createOwnCloudClient(serverUri, this, true);
8383
mClient.setCredentials(
84-
OwnCloudCredentialsFactory.newBasicCredentials(
85-
getString(R.string.username),
86-
getString(R.string.password)
84+
OwnCloudCredentialsFactory.newBasicCredentials(
85+
getString(R.string.username),
86+
getString(R.string.password)
8787
)
8888
);
89+
mClient.setUserId(getString(R.string.username));
8990

9091
mFilesAdapter = new FilesArrayAdapter(this, R.layout.file_in_list);
9192
((ListView)findViewById(R.id.list_view)).setAdapter(mFilesAdapter);

0 commit comments

Comments
 (0)