瀏覽代碼

Update string subject_token and update library reference

masensio 9 年之前
父節點
當前提交
e7710e7383
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      owncloud-android-library
  2. 1 1
      res/values/strings.xml
  3. 2 2
      src/com/owncloud/android/operations/CreateShareOperation.java

+ 1 - 1
owncloud-android-library

@@ -1 +1 @@
-Subproject commit 344d5b22e43021ebc54f18ad7d17b1702dfa406c
+Subproject commit a22b1da16b16a759d260d950fcd246d8527fbf00

+ 1 - 1
res/values/strings.xml

@@ -343,7 +343,7 @@
 	<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>

+ 2 - 2
src/com/owncloud/android/operations/CreateShareOperation.java

@@ -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);