projects
/
pub
/
Android
/
ownCloud.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9df957d
)
Fixes from CR
author
David A. Velasco
<dvelasco@solidgear.es>
Thu, 22 Oct 2015 07:17:08 +0000
(09:17 +0200)
committer
David A. Velasco
<dvelasco@solidgear.es>
Fri, 30 Oct 2015 15:47:28 +0000
(16:47 +0100)
src/com/owncloud/android/operations/CreateShareViaLinkOperation.java
patch
|
blob
|
blame
|
history
src/com/owncloud/android/operations/CreateShareWithShareeOperation.java
patch
|
blob
|
blame
|
history
diff --git
a/src/com/owncloud/android/operations/CreateShareViaLinkOperation.java
b/src/com/owncloud/android/operations/CreateShareViaLinkOperation.java
index
1449094
..
10af272
100644
(file)
--- a/
src/com/owncloud/android/operations/CreateShareViaLinkOperation.java
+++ b/
src/com/owncloud/android/operations/CreateShareViaLinkOperation.java
@@
-116,7
+116,8
@@
public class CreateShareViaLinkOperation extends SyncOperation {
public Intent getSendIntentWithSubject(Context context) {
if (context != null && mSendIntent != null && mSendIntent.getStringExtra(Intent.EXTRA_SUBJECT) != null) {
public Intent getSendIntentWithSubject(Context context) {
if (context != null && mSendIntent != null && mSendIntent.getStringExtra(Intent.EXTRA_SUBJECT) != null) {
- if (getClient() == null || getClient().getCredentials().getUsername() == null) {
+ if (getClient() == null || getClient().getCredentials() == null ||
+ getClient().getCredentials().getUsername() == null) {
mSendIntent.putExtra(
Intent.EXTRA_SUBJECT,
context.getString(R.string.subject_shared_with_you, mFileName)
mSendIntent.putExtra(
Intent.EXTRA_SUBJECT,
context.getString(R.string.subject_shared_with_you, mFileName)
diff --git
a/src/com/owncloud/android/operations/CreateShareWithShareeOperation.java
b/src/com/owncloud/android/operations/CreateShareWithShareeOperation.java
index
cb81ce4
..
861393c
100644
(file)
--- a/
src/com/owncloud/android/operations/CreateShareWithShareeOperation.java
+++ b/
src/com/owncloud/android/operations/CreateShareWithShareeOperation.java
@@
-102,11
+102,7
@@
public class CreateShareWithShareeOperation extends SyncOperation {
private void updateData(OCShare share) {
// Update DB with the response
share.setPath(mPath);
private void updateData(OCShare share) {
// Update DB with the response
share.setPath(mPath);
- if (mPath.endsWith(FileUtils.PATH_SEPARATOR)) {
- share.setIsFolder(true);
- } else {
- share.setIsFolder(false);
- }
+ share.setIsFolder(mPath.endsWith(FileUtils.PATH_SEPARATOR));
share.setPermissions(READ_ONLY);
getStorageManager().saveShare(share);
share.setPermissions(READ_ONLY);
getStorageManager().saveShare(share);