From: Maria Asensio Date: Thu, 5 Nov 2015 12:19:24 +0000 (+0100) Subject: Merge pull request #1252 from owncloud/share_with_users X-Git-Tag: oc-android-1.9^2~30 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/7e96305668f038aee9ffe5cc3fe0c17a293fed6e?hp=94b21ef5d933996b6a382e7474f0178950fc0f61 Merge pull request #1252 from owncloud/share_with_users Share with users & groups --- diff --git a/AndroidManifest.xml b/AndroidManifest.xml index acb5f1d8..805e9ce7 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,4 +1,5 @@ - - + + android:versionName="1.8.0" > + + @@ -31,64 +37,60 @@ - - - - + + + - + + + android:theme="@style/Theme.ownCloud" > + android:label="@string/app_name" > + - - + + - + - + - + - - - + - + + - - - + + android:theme="@style/Theme.ownCloud.Fullscreen" /> - + android:exported="true" > + @@ -98,7 +100,7 @@ + android:exported="true" > @@ -114,13 +116,20 @@ android:enabled="true" android:exported="false" android:label="@string/sync_string_files" - android:syncable="true"> + android:syncable="true" /> + + + android:launchMode="singleTask" + android:theme="@style/Theme.ownCloud.noActionBar" > @@ -131,6 +140,7 @@ + @@ -141,48 +151,60 @@ - - - - - - - + + + + + + + + + - + - - - - + - + android:name=".ui.activity.CopyToClipboardActivity" + android:icon="@drawable/copy_link" + android:label="@string/copy_link" /> + + + + + + + + diff --git a/build.gradle b/build.gradle index a0db0184..d96997a6 100644 --- a/build.gradle +++ b/build.gradle @@ -20,8 +20,8 @@ repositories { dependencies { compile name: 'touch-image-view' - compile 'com.android.support:support-v4:22.2.1' compile project(':owncloud-android-library') + compile 'com.android.support:support-v4:22.2.1' compile 'com.jakewharton:disklrucache:2.0.2' compile 'com.android.support:appcompat-v7:22.2.1' } @@ -58,7 +58,7 @@ android { abortOnError false } } - + productFlavors { } @@ -68,3 +68,7 @@ android { } + + + + diff --git a/owncloud-android-library b/owncloud-android-library index f02dffb1..32ab89fc 160000 --- a/owncloud-android-library +++ b/owncloud-android-library @@ -1 +1 @@ -Subproject commit f02dffb1d3c46305c70d246f696cde7b8c3b0971 +Subproject commit 32ab89fc308af2a51b9b7ded7fb40fc786dfd8a6 diff --git a/res/drawable-hdpi/shared_via_link.png b/res/drawable-hdpi/shared_via_link.png new file mode 100644 index 00000000..f4279f3a Binary files /dev/null and b/res/drawable-hdpi/shared_via_link.png differ diff --git a/res/drawable-hdpi/shared_via_users.png b/res/drawable-hdpi/shared_via_users.png new file mode 100644 index 00000000..9ec18ced Binary files /dev/null and b/res/drawable-hdpi/shared_via_users.png differ diff --git a/res/drawable-hdpi/shared_with_me.png b/res/drawable-hdpi/shared_with_me.png deleted file mode 100644 index 9ec18ced..00000000 Binary files a/res/drawable-hdpi/shared_with_me.png and /dev/null differ diff --git a/res/drawable-hdpi/sharedlink.png b/res/drawable-hdpi/sharedlink.png deleted file mode 100644 index f4279f3a..00000000 Binary files a/res/drawable-hdpi/sharedlink.png and /dev/null differ diff --git a/res/drawable-mdpi/shared_via_link.png b/res/drawable-mdpi/shared_via_link.png new file mode 100644 index 00000000..1d27294e Binary files /dev/null and b/res/drawable-mdpi/shared_via_link.png differ diff --git a/res/drawable-mdpi/shared_via_users.png b/res/drawable-mdpi/shared_via_users.png new file mode 100644 index 00000000..0b17c765 Binary files /dev/null and b/res/drawable-mdpi/shared_via_users.png differ diff --git a/res/drawable-mdpi/shared_with_me.png b/res/drawable-mdpi/shared_with_me.png deleted file mode 100644 index 0b17c765..00000000 Binary files a/res/drawable-mdpi/shared_with_me.png and /dev/null differ diff --git a/res/drawable-mdpi/sharedlink.png b/res/drawable-mdpi/sharedlink.png deleted file mode 100644 index 1d27294e..00000000 Binary files a/res/drawable-mdpi/sharedlink.png and /dev/null differ diff --git a/res/drawable-xhdpi/shared_via_link.png b/res/drawable-xhdpi/shared_via_link.png new file mode 100644 index 00000000..11f8afa1 Binary files /dev/null and b/res/drawable-xhdpi/shared_via_link.png differ diff --git a/res/drawable-xhdpi/shared_via_users.png b/res/drawable-xhdpi/shared_via_users.png new file mode 100644 index 00000000..ef7779ca Binary files /dev/null and b/res/drawable-xhdpi/shared_via_users.png differ diff --git a/res/drawable-xhdpi/shared_with_me.png b/res/drawable-xhdpi/shared_with_me.png deleted file mode 100644 index ef7779ca..00000000 Binary files a/res/drawable-xhdpi/shared_with_me.png and /dev/null differ diff --git a/res/drawable-xhdpi/sharedlink.png b/res/drawable-xhdpi/sharedlink.png deleted file mode 100644 index 11f8afa1..00000000 Binary files a/res/drawable-xhdpi/sharedlink.png and /dev/null differ diff --git a/res/layout/grid_image.xml b/res/layout/grid_image.xml index 383c6154..15a9baf0 100644 --- a/res/layout/grid_image.xml +++ b/res/layout/grid_image.xml @@ -38,30 +38,13 @@ android:scaleType="centerCrop" android:src="@drawable/ic_menu_archive"/> - - - - - - + android:layout_margin="4dp" + android:src="@drawable/shared_via_link" /> - - - - - - + android:src="@drawable/shared_via_link" /> - - - - - - - + + + + + + + + + + diff --git a/res/layout/share_activity.xml b/res/layout/share_activity.xml new file mode 100644 index 00000000..772b941e --- /dev/null +++ b/res/layout/share_activity.xml @@ -0,0 +1,32 @@ + + + + + + + + + diff --git a/res/layout/share_file_layout.xml b/res/layout/share_file_layout.xml new file mode 100644 index 00000000..feaddb3b --- /dev/null +++ b/res/layout/share_file_layout.xml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/share_user_item.xml b/res/layout/share_user_item.xml new file mode 100644 index 00000000..2bb8c28e --- /dev/null +++ b/res/layout/share_user_item.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + diff --git a/res/menu/file_actions_menu.xml b/res/menu/file_actions_menu.xml index 63fadbbc..586ec4a2 100644 --- a/res/menu/file_actions_menu.xml +++ b/res/menu/file_actions_menu.xml @@ -29,6 +29,11 @@ android:icon="@android:drawable/ic_menu_share" android:orderInCategory="1" /> + + + \ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index 305a5404..2458d707 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -87,6 +87,7 @@ List Layout Share link Unshare link + Share with users Yes No OK @@ -347,8 +348,8 @@ shared with you - %1$s shared \"%2$s\" with you - \"%1$s\" has been shared with you + %1$s shared \"%2$s\" with you + \"%1$s\" has been shared with you Refresh connection Server address @@ -365,4 +366,16 @@ %1$d files, 1 folder %1$d files, %2$d folders + 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 + diff --git a/res/values/styles.xml b/res/values/styles.xml index 54e52257..b7a64843 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -224,4 +224,10 @@ #777777 #000000 + +