From: Andy Scherzinger Date: Fri, 11 Sep 2015 10:47:01 +0000 (+0200) Subject: Merge branch 'master' of https://github.com/owncloud/android into material_buttons X-Git-Tag: beta-20151128~7^2~31 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/13a73dd56872b6fcbc12ab8c62806cbfd48dc93b?hp=0234ca22ea2422f49cb453e8f3030a699cdd94bd Merge branch 'master' of https://github.com/owncloud/android into material_buttons --- diff --git a/res/layout/file_actions.xml b/res/layout/file_actions.xml index abc42fb4..c52c1f18 100644 --- a/res/layout/file_actions.xml +++ b/res/layout/file_actions.xml @@ -3,12 +3,31 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:layout_margin="@dimen/standard_margin"> + android:layout_margin="@dimen/standard_margin" + android:orientation="vertical"> + + + + - + android:layout_height="0dp" + android:layout_weight="1" + /> - \ No newline at end of file + \ No newline at end of file diff --git a/res/values-nb-rNO/strings.xml b/res/values-nb-rNO/strings.xml index 43b1ba84..bbf1061f 100644 --- a/res/values-nb-rNO/strings.xml +++ b/res/values-nb-rNO/strings.xml @@ -202,6 +202,8 @@ Vil du virkelig fjerne %1$s inkludert innholdet? Kun lokalt Kun lokalt + Fra server + Ekstern & lokal Fjerning var vellykket Fjerning mislyktes Skriv inn et nytt navn @@ -253,7 +255,11 @@ Kun last opp bilder via WiFi Last opp video kun via WiFi /Direkteopplasting + Filkonflikt + Hvilke filer ønsker du å beholder? Hvis du velger begge versjonene, får den lokale filen lagt til et tall i navnet. Behold begge + lokal versjon + server-versjon Bildeforhåndsvisning Dette bildet kan ikke vises %1$s kunne ikke kopieres til lokal mappe %2$s @@ -301,7 +307,11 @@ Filen finnes allerede i målmappen En feil oppstod ved flytting av denne filen eller mappen å flytte denne filen + Kan ikke kopiere. Sjekk om filen eksisterer + Det er ikke mulig å kopiere en mappe inn i sin egen undermappe Filen finnes allerede i målmappen + En feil oppstod ved kopiering av denne filen eller mappen + å kopiere denne filen Umiddelbare opplastinger Sikkerhet Sti til video-opplasting @@ -309,6 +319,7 @@ delte med deg %1$s delte \"%2$s\" med deg + \"%1$s\" er blitt delt med deg Oppfrisk forbindelse Server-adresse Ikke nok minne diff --git a/res/values-th-rTH/strings.xml b/res/values-th-rTH/strings.xml index 836a2af2..92fa673f 100644 --- a/res/values-th-rTH/strings.xml +++ b/res/values-th-rTH/strings.xml @@ -289,6 +289,7 @@ ไฟล์ไม่พร้อมใช้งานบนเซิร์ฟเวอร์ บัญชี เพิ่มบัญชี + เชื่อมต่อที่ปลอดภัยถูกเปลี่ยนเส้นทางผ่านเราเตอร์ที่ไม่ปลอดภัย บันทึก ส่งประวัติ ไม่พบการส่งบันทึกของแอพฯ ติดตั้งแอพฯเมล! @@ -304,7 +305,11 @@ มีไฟล์อยู่แล้วในโฟลเดอร์ปลายทาง เกิดข้อผิดพลาดขณะพยายามที่จะย้ายไฟล์หรือโฟลเดอร์นี้ เพื่อย้ายไฟล์นี้ + ไม่สามารถคัดลอก กรุณาตรวจสอบว่ามีไฟล์นั้นอยู่ + มันเป็นไปไม่ได้ที่จะคัดลอกลงในโฟลเดอร์โฟลเดอร์ย่อย มีไฟล์อยู่แล้วในโฟลเดอร์ปลายทาง + เกิดข้อผิดพลาดขณะพยายามคัดลอกไฟล์หรือโฟลเดอร์นี้ + เพื่อคัดลอกไฟล์นี้ อัพโหลดทันที ความปลอดภัย อัพโหลดเส้นทางวิดีโอ diff --git a/src/com/owncloud/android/ui/dialog/FileActionsDialogFragment.java b/src/com/owncloud/android/ui/dialog/FileActionsDialogFragment.java index cf75cc22..79eb52d0 100644 --- a/src/com/owncloud/android/ui/dialog/FileActionsDialogFragment.java +++ b/src/com/owncloud/android/ui/dialog/FileActionsDialogFragment.java @@ -12,6 +12,7 @@ import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ArrayAdapter; import android.widget.ListView; +import android.widget.TextView; import com.owncloud.android.R; import com.owncloud.android.ui.dialog.parcel.MenuItemParcelable; @@ -27,6 +28,7 @@ public class FileActionsDialogFragment extends DialogFragment implements OnItemClickListener { private static final String ARG_ITEM_LIST = "ITEM_LIST"; private static final String ARG_FILE_POSITION = "FILE_POSITION"; + private static final String ARG_FILE_NAME = "FILE_NAME"; public static final String FTAG_FILE_ACTIONS = "FILE_ACTIONS_FRAGMENT"; private List mMenuItems; @@ -48,7 +50,7 @@ public class FileActionsDialogFragment extends DialogFragment implements * @param menu menu to be display. * @return Dialog ready to show. */ - public static FileActionsDialogFragment newInstance(Menu menu, int filePosition) { + public static FileActionsDialogFragment newInstance(Menu menu, int filePosition, String fileName) { FileActionsDialogFragment fragment = new FileActionsDialogFragment(); Bundle args = new Bundle(); @@ -57,6 +59,7 @@ public class FileActionsDialogFragment extends DialogFragment implements args.putParcelable(ARG_ITEM_LIST, menuParcelable); args.putInt(ARG_FILE_POSITION, filePosition); + args.putCharSequence(ARG_FILE_NAME, fileName); fragment.setArguments(args); return fragment; @@ -80,7 +83,16 @@ public class FileActionsDialogFragment extends DialogFragment implements View view = inflater.inflate(R.layout.file_actions, null, false); mListView = (ListView) view.findViewById(R.id.file_actions_list); - getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE); + CharSequence title = getArguments().getCharSequence(ARG_FILE_NAME); + if(title != null && title.length() > 0) { + TextView header = (TextView)view.findViewById(R.id.file_actions_header); + header.setText(title); + header.setVisibility(View.VISIBLE); + view.findViewById(R.id.file_actions_header_divider).setVisibility(View.VISIBLE); + } else { + getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE); + } + return view; } diff --git a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java index 0c96ea2c..02bd845d 100644 --- a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java +++ b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java @@ -193,7 +193,7 @@ public class OCFileListFragment extends ExtendedListFragment implements FileActi } } - FileActionsDialogFragment dialog = FileActionsDialogFragment.newInstance(menu, fileIndex); + FileActionsDialogFragment dialog = FileActionsDialogFragment.newInstance(menu, fileIndex, targetFile.getFileName()); dialog.setTargetFragment(this, 0); dialog.show(getFragmentManager(), FileActionsDialogFragment.FTAG_FILE_ACTIONS); }