From: tobiasKaminsky Date: Sat, 21 Nov 2015 09:03:07 +0000 (+0100) Subject: Merge remote-tracking branch 'remotes/upstream/setAsWallpaper' into beta X-Git-Tag: beta-20151124~7 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/b47cd012d2c66d9d84808a702c2f928c4fb07e8a Merge remote-tracking branch 'remotes/upstream/setAsWallpaper' into beta --- b47cd012d2c66d9d84808a702c2f928c4fb07e8a diff --cc res/values/strings.xml index 3750f610,d16e9c5c..7625c94f --- a/res/values/strings.xml +++ b/res/values/strings.xml @@@ -387,42 -364,7 +387,43 @@@ %1$d files %1$d files, 1 folder %1$d files, %2$d folders + Switch to grid view + Switch to list view + Common + Cache size + Upload file to server and ... + Behaviour + Copy file + Move file + Storage path + Common + + do nothing + copy file to OC folder + move file to OC folder + delete origin file + Do you really want to remove selected items? + Do you really want to remove a folder and its content? + selected items + Exit + Send Log + Error Log + Stream file with external player + Do you want to stream this file with an external app?\n\nCAUTION: This may expose your password! Set picture as + Set As + Sharing + Share with Users and Groups + No data shared with users yet + Add User or Group + Search + + Search users and groups + %1$s (group) + + Sorry, your server version does not allow share with users within clients. + \nPlease contact your administrator + https://github.com/owncloud/android/raw/beta/CHANGELOG.md + diff --cc src/com/owncloud/android/files/FileOperationsHelper.java index 362cada4,010d1ff7..f5050d4d --- a/src/com/owncloud/android/files/FileOperationsHelper.java +++ b/src/com/owncloud/android/files/FileOperationsHelper.java @@@ -349,26 -245,15 +349,27 @@@ public class FileOperationsHelper Intent intent = new Intent(Intent.ACTION_ATTACH_DATA); intent.setDataAndType(sendUri, file.getMimetype()); intent.putExtra("mimeType", file.getMimetype()); - mFileActivity.startActivityForResult(Intent.createChooser(intent, "Set As"), 200); + mFileActivity.startActivityForResult(Intent.createChooser(intent, + mFileActivity.getString(R.string.set_as)), 200); } else { -// TODO re-enable after resized images is available -// Uri sendUri = Uri.parse("content://" + DiskLruImageCacheFileProvider.AUTHORITY + file.getRemotePath()); -// Intent intent = new Intent(Intent.ACTION_ATTACH_DATA); -// intent.setDataAndType(sendUri, file.getMimetype()); -// intent.putExtra("mimeType", file.getMimetype()); -// mFileActivity.startActivityForResult(Intent.createChooser(intent, "Set As"), 200); + // TODO re-enable after resized images is available + Uri sendUri = Uri.parse("content://" + DiskLruImageCacheFileProvider.AUTHORITY + file.getRemotePath()); + Intent intent = new Intent(Intent.ACTION_ATTACH_DATA); + intent.setDataAndType(sendUri, file.getMimetype()); + intent.putExtra("mimeType", file.getMimetype()); + mFileActivity.startActivityForResult(Intent.createChooser(intent, "Set As"), 200); + +// Intent sendIntent = new Intent(android.content.Intent.ACTION_SEND); +// // set MimeType +// sendIntent.setType(file.getMimetype()); +//// sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("content://" + DiskLruImageCacheFileProvider.AUTHORITY + "/#" + file.getRemoteId() + "#" + file.getFileName())); +// sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("content://" + DiskLruImageCacheFileProvider.AUTHORITY + file.getRemotePath())); +// sendIntent.putExtra(Intent.ACTION_SEND, true); // Send Action +// +// // Show dialog, without the own app +// String[] packagesToExclude = new String[] { mFileActivity.getPackageName() }; +// DialogFragment chooserDialog = ShareLinkToDialog.newInstance(sendIntent, packagesToExclude, file); +// chooserDialog.show(mFileActivity.getSupportFragmentManager(), FTAG_CHOOSER_DIALOG); } } else { Log_OC.wtf(TAG, "Trying to send a NULL OCFile");