From: tobiasKaminsky Date: Thu, 29 Oct 2015 17:49:00 +0000 (+0100) Subject: Merge remote-tracking branch 'remotes/upstream/avoidDuplicateFiles' into beta X-Git-Tag: beta-20151122~82 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/cc05129c903b9e6bb7e00af479cb61ce203d3b63?hp=c7a3b092ceb08ad2f74d66d660cf82244c328311 Merge remote-tracking branch 'remotes/upstream/avoidDuplicateFiles' into beta --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 79e012b8..870e4f06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - PR [#1195](https://github.com/owncloud/android/pull/1195) "Resize Cache" merged - PR [#1187](https://github.com/owncloud/android/pull/1187) "Video: Big thumbnails" merged - PR [#1058](https://github.com/owncloud/android/pull/1058) "add sort to UploadFileActiviy" merged +- PR [#1168](https://github.com/owncloud/android/pull/1168) "Avoid duplicate files" merged # 2015-10-26 diff --git a/res/layout/upload_files_layout.xml b/res/layout/upload_files_layout.xml index 121fd64d..fbf9cee6 100644 --- a/res/layout/upload_files_layout.xml +++ b/res/layout/upload_files_layout.xml @@ -33,8 +33,56 @@ + + + + + + + + + + + + + + + + + android:orientation="horizontal" + android:paddingLeft="16dp" + android:paddingRight="16dp" + android:paddingBottom="16dp"> + + @string/pref_behaviour_entries_do_nothing + @string/pref_behaviour_entries_copy + @string/pref_behaviour_entries_move + @string/pref_behaviour_entries_delete + + + + NOTHING + COPY + MOVE + DELETE + \ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index 7f88cd79..70d00408 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -370,5 +370,14 @@ Switch to list view Common Cache size + Upload file to server and ... + Behaviour + Copy file + Move file + + do nothing + copy file to OC folder + move file to OC folder + delete origin file diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index 842579bb..e09de46d 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -33,9 +33,22 @@ android:summary="@string/prefs_pincode_summary"/> - + + + + = 0 && getEntryValues() != null) { + String value = getEntryValues()[which].toString(); + if (callChangeListener(value)) { + setValue(value); + } + dialog.dismiss(); + } + } + + @Override + public AppCompatDialog getDialog() { + return mDialog; + } + + @Override + public void onActivityDestroy() { + super.onActivityDestroy(); + if (mDialog != null && mDialog.isShowing()) { + mDialog.dismiss(); + } + } +}