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 (from parent 1:
065a9c0
)
OC-2966: Change name of the action from 'Share' to 'Send'
author
masensio
<masensio@solidgear.es>
Fri, 14 Feb 2014 11:38:38 +0000
(12:38 +0100)
committer
masensio
<masensio@solidgear.es>
Fri, 14 Feb 2014 11:38:38 +0000
(12:38 +0100)
res/values/strings.xml
patch
|
blob
|
blame
|
history
src/com/owncloud/android/ui/fragment/OCFileListFragment.java
patch
|
blob
|
blame
|
history
src/com/owncloud/android/ui/preview/PreviewImageFragment.java
patch
|
blob
|
blame
|
history
diff --git
a/res/values/strings.xml
b/res/values/strings.xml
index
cc88433
..
601a703
100644
(file)
--- a/
res/values/strings.xml
+++ b/
res/values/strings.xml
@@
-251,4
+251,6
@@
<string name="share_link_file_no_exist">Unable to share this file or folder. Please, make sure it exists</string>
<string name="share_link_file_error">An error occurred while trying to share this file or folder</string>
<string name="unshare_link_file_error">An error occurred while trying to unshare this file or folder</string>
<string name="share_link_file_no_exist">Unable to share this file or folder. Please, make sure it exists</string>
<string name="share_link_file_error">An error occurred while trying to share this file or folder</string>
<string name="unshare_link_file_error">An error occurred while trying to unshare this file or folder</string>
+
+ <string name="send_file_title_intent">Send</string>
</resources>
</resources>
diff --git
a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java
b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java
index
ad4d2bc
..
d0f62ae
100644
(file)
--- a/
src/com/owncloud/android/ui/fragment/OCFileListFragment.java
+++ b/
src/com/owncloud/android/ui/fragment/OCFileListFragment.java
@@
-222,7
+222,7
@@
public class OCFileListFragment extends ExtendedListFragment implements EditName
toHide.add(R.id.action_cancel_upload);
toHide.add(R.id.action_sync_file);
toHide.add(R.id.action_see_details);
toHide.add(R.id.action_cancel_upload);
toHide.add(R.id.action_sync_file);
toHide.add(R.id.action_see_details);
- toHide.add(R.id.action_s
hare
_file);
+ toHide.add(R.id.action_s
end
_file);
if ( mContainerActivity.getFileDownloaderBinder().isDownloading(AccountUtils.getCurrentOwnCloudAccount(getActivity()), targetFile) ||
mContainerActivity.getFileUploaderBinder().isUploading(AccountUtils.getCurrentOwnCloudAccount(getActivity()), targetFile) ) {
toDisable.add(R.id.action_rename_file);
if ( mContainerActivity.getFileDownloaderBinder().isDownloading(AccountUtils.getCurrentOwnCloudAccount(getActivity()), targetFile) ||
mContainerActivity.getFileUploaderBinder().isUploading(AccountUtils.getCurrentOwnCloudAccount(getActivity()), targetFile) ) {
toDisable.add(R.id.action_rename_file);
@@
-355,8
+355,8
@@
public class OCFileListFragment extends ExtendedListFragment implements EditName
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
// set MimeType
sharingIntent.setType(mTargetFile.getMimetype());
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
// set MimeType
sharingIntent.setType(mTargetFile.getMimetype());
- sharingIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://"
+
mTargetFile.getStoragePath()));
- startActivity(Intent.createChooser(sharingIntent,
"Share via"
));
+ sharingIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://"
+
mTargetFile.getStoragePath()));
+ startActivity(Intent.createChooser(sharingIntent,
getResources().getString(R.string.send_file_title_intent)
));
return true;
}
default:
return true;
}
default:
diff --git
a/src/com/owncloud/android/ui/preview/PreviewImageFragment.java
b/src/com/owncloud/android/ui/preview/PreviewImageFragment.java
index
dcf5ea1
..
84cdcc6
100644
(file)
--- a/
src/com/owncloud/android/ui/preview/PreviewImageFragment.java
+++ b/
src/com/owncloud/android/ui/preview/PreviewImageFragment.java
@@
-266,7
+266,7
@@
public class PreviewImageFragment extends FileFragment implements OnRemoteOper
return true;
}
case R.id.action_send_file: {
return true;
}
case R.id.action_send_file: {
- s
hare
File();
+ s
end
File();
return true;
}
return true;
}
@@
-275,12
+275,12
@@
public class PreviewImageFragment extends FileFragment implements OnRemoteOper
}
}
}
}
- private void s
hare
File(){
+ private void s
end
File(){
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)
));
}
}