From: masensio Date: Wed, 12 Feb 2014 09:28:30 +0000 (+0100) Subject: OC-2918: Fix bug: It's not possible to share a file in samsung galaxy mini. (Some... X-Git-Tag: oc-android-1.5.5~48^2~8 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/822245d11dd879d9f0687b57b13fbd1b1973262b?ds=inline;hp=-c OC-2918: Fix bug: It's not possible to share a file in samsung galaxy mini. (Some strings comparisons are wrong in OperationService#onStartCommand) --- 822245d11dd879d9f0687b57b13fbd1b1973262b diff --git a/src/com/owncloud/android/services/OperationsService.java b/src/com/owncloud/android/services/OperationsService.java index 53befed5..85eaf723 100644 --- a/src/com/owncloud/android/services/OperationsService.java +++ b/src/com/owncloud/android/services/OperationsService.java @@ -124,14 +124,14 @@ public class OperationsService extends Service { RemoteOperation operation = null; String action = intent.getAction(); - if (action == ACTION_CREATE_SHARE) { // Create Share + if (action.equals(ACTION_CREATE_SHARE)) { // Create Share String remotePath = intent.getStringExtra(EXTRA_REMOTE_PATH); Intent sendIntent = intent.getParcelableExtra(EXTRA_SEND_INTENT); if (remotePath.length() > 0) { operation = new CreateShareOperation(remotePath, ShareType.PUBLIC_LINK, "", false, "", 1, sendIntent); } - } else if (action == ACTION_UNSHARE) { // Unshare file + } else if (action.equals(ACTION_UNSHARE)) { // Unshare file String remotePath = intent.getStringExtra(EXTRA_REMOTE_PATH); if (remotePath.length() > 0) { operation = new UnshareLinkOperation(remotePath, this.getApplicationContext());