Merge remote-tracking branch 'origin/release-1.7.2' into release-1.7.2
authorDavid A. Velasco <dvelasco@solidgear.es>
Mon, 22 Jun 2015 12:56:13 +0000 (14:56 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Mon, 22 Jun 2015 12:56:13 +0000 (14:56 +0200)
owncloud-android-library
res/values/strings.xml
src/com/owncloud/android/operations/CreateShareOperation.java

index ff85ff2..5d1f069 160000 (submodule)
@@ -1 +1 @@
-Subproject commit ff85ff2eef6d418de75ab587ad9b7489d868a22a
+Subproject commit 5d1f0690036c556ec299881c339959de891fdf46
index ac8fd3a..a93d08d 100644 (file)
        <string name="shared_subject_header">shared</string>
        <string name="with_you_subject_header">with you</string>
     
-       <string name="subject_token">%1$s %2$s &gt;&gt;%3$s&lt;&lt; %4$s</string>
+       <string name="subject_token">%1$s shared \"%2$s\" with you</string>
 
     <string name="auth_refresh_button">Refresh connection</string>
     <string name="auth_host_address">Server address</string>
index 63f7493..7cdcc08 100644 (file)
@@ -27,7 +27,6 @@ package com.owncloud.android.operations;
 import android.content.Context;
 import android.content.Intent;
 
-import com.owncloud.android.MainApp;
 import com.owncloud.android.R;
 import com.owncloud.android.datamodel.FileDataStorageManager;
 import com.owncloud.android.datamodel.OCFile;
@@ -162,7 +161,8 @@ public class CreateShareOperation extends SyncOperation {
         OCFile file = getStorageManager().getFileByPath(mPath);
         if (file!=null) {
             mSendIntent.putExtra(Intent.EXTRA_TEXT, share.getShareLink());
-            mSendIntent.putExtra(Intent.EXTRA_SUBJECT, String.format(mContext.getString(R.string.subject_token),
+            mSendIntent.putExtra(Intent.EXTRA_SUBJECT,
+                    String.format(mContext.getString(R.string.subject_token),
                     getClient().getCredentials().getUsername(), file.getFileName()));
             file.setPublicLink(share.getShareLink());
             file.setShareByLink(true);