Merge branch 'develop' into send_file_pr311_with_develop
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / preview / PreviewImageFragment.java
index 5a34686..80d5d1e 100644 (file)
@@ -311,7 +311,7 @@ public class PreviewImageFragment extends FileFragment implements   OnRemoteOper
                 return true;
             }
             case R.id.action_send_file: {
                 return true;
             }
             case R.id.action_send_file: {
-                shareFile();
+                sendFile();
                 return true;
             }
             
                 return true;
             }
             
@@ -320,12 +320,12 @@ public class PreviewImageFragment extends FileFragment implements   OnRemoteOper
         }
     }
     
         }
     }
     
-    private void shareFile(){
+    private void sendFile(){
         Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
         // set MimeType
         sharingIntent.setType(getFile().getMimetype());
         sharingIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://"+getFile().getStoragePath()));
         Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
         // set MimeType
         sharingIntent.setType(getFile().getMimetype());
         sharingIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://"+getFile().getStoragePath()));
-        startActivity(Intent.createChooser(sharingIntent, "Share via"));
+        startActivity(Intent.createChooser(sharingIntent, getResources().getString(R.string.send_file_title_intent)));
     }
 
     
     }