aboutsummaryrefslogtreecommitdiff
path: root/mediapicker/src
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-01-01 23:22:51 -0500
committerAllan Wang <me@allanwang.ca>2018-01-01 23:22:51 -0500
commit71f5dc2f7ce5b8183421586e6a77be65040a4dff (patch)
treefedd18e271463ce2430637a9913e8470e84181ce /mediapicker/src
parentf94d6f9694973c2a323e565794d948002593df0a (diff)
downloadkau-71f5dc2f7ce5b8183421586e6a77be65040a4dff.tar.gz
kau-71f5dc2f7ce5b8183421586e6a77be65040a4dff.tar.bz2
kau-71f5dc2f7ce5b8183421586e6a77be65040a4dff.zip
Format everything and use reified generics
Diffstat (limited to 'mediapicker/src')
-rw-r--r--mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerBinder.kt6
-rw-r--r--mediapicker/src/main/res-public/values/public.xml2
-rw-r--r--mediapicker/src/main/res/values-de-rDE/strings_mediapicker.xml17
-rw-r--r--mediapicker/src/main/res/values-es-rES/strings_mediapicker.xml17
-rw-r--r--mediapicker/src/main/res/values-fr-rFR/strings_mediapicker.xml17
-rw-r--r--mediapicker/src/main/res/values-gl-rES/strings_mediapicker.xml17
-rw-r--r--mediapicker/src/main/res/values-hu-rHU/strings_mediapicker.xml17
-rw-r--r--mediapicker/src/main/res/values-it-rIT/strings_mediapicker.xml17
-rw-r--r--mediapicker/src/main/res/values-ko-rKR/strings_mediapicker.xml17
-rw-r--r--mediapicker/src/main/res/values-no-rNO/strings_mediapicker.xml17
-rw-r--r--mediapicker/src/main/res/values-pt-rBR/strings_mediapicker.xml17
-rw-r--r--mediapicker/src/main/res/values-vi-rVN/strings_mediapicker.xml17
-rw-r--r--mediapicker/src/main/res/values-zh-rCN/strings_mediapicker.xml17
13 files changed, 92 insertions, 103 deletions
diff --git a/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerBinder.kt b/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerBinder.kt
index bf58a30..87f5a42 100644
--- a/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerBinder.kt
+++ b/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerBinder.kt
@@ -19,9 +19,9 @@ import com.bumptech.glide.request.RequestOptions
/**
* Image picker launchers
*/
-fun Activity.kauLaunchMediaPicker(clazz: Class<out MediaPickerCore<*>>, requestCode: Int) {
- startActivityForResult(clazz, requestCode, bundleBuilder = {
- if (MediaPickerActivityOverlayBase::class.java.isAssignableFrom(clazz))
+inline fun <reified T : MediaPickerCore<*>> Activity.kauLaunchMediaPicker(requestCode: Int) {
+ startActivityForResult<T>(requestCode, bundleBuilder = {
+ if (MediaPickerActivityOverlayBase::class.java.isAssignableFrom(T::class.java))
withSceneTransitionAnimation(this@kauLaunchMediaPicker)
})
}
diff --git a/mediapicker/src/main/res-public/values/public.xml b/mediapicker/src/main/res-public/values/public.xml
index 3c6f0fa..41bcbfd 100644
--- a/mediapicker/src/main/res-public/values/public.xml
+++ b/mediapicker/src/main/res-public/values/public.xml
@@ -1,5 +1,5 @@
<resources xmlns:tools='http://schemas.android.com/tools' tools:ignore='ResourceName'>
-<!-- AUTO-GENERATED FILE. DO NOT MODIFY. public.xml is generated by the generatepublicxml gradle task -->
+ <!-- AUTO-GENERATED FILE. DO NOT MODIFY. public.xml is generated by the generatepublicxml gradle task -->
<public name='Kau.MediaPicker' type='style' />
<public name='Kau.MediaPicker.Overlay' type='style' />
<public name='kau_blurred_image_selection_overlay' type='color' />
diff --git a/mediapicker/src/main/res/values-de-rDE/strings_mediapicker.xml b/mediapicker/src/main/res/values-de-rDE/strings_mediapicker.xml
index 85b99f3..ae441cc 100644
--- a/mediapicker/src/main/res/values-de-rDE/strings_mediapicker.xml
+++ b/mediapicker/src/main/res/values-de-rDE/strings_mediapicker.xml
@@ -1,11 +1,10 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--Generated by crowdin.com-->
+<?xml version="1.0" encoding="utf-8"?><!--Generated by crowdin.com-->
<resources>
- <string name="kau_no_items_found">Keine Elemente gefunden</string>
- <string name="kau_no_items_selected">Keine Datei ausgewählt</string>
- <string name="kau_no_items_loaded">Keine Datei geladen</string>
- <string name="kau_no_camera_found">Keine Kamera gefunden</string>
- <string name="kau_no_camera_found_content">Bitte installieren Sie eine Kamera App und versuchen es erneut.</string>
- <string name="kau_temp_file_creation_failed">Temporäre Datei konnte nicht erstellt werden.</string>
- <string name="kau_select_media">Wähle Mediendatei</string>
+ <string name="kau_no_items_found">Keine Elemente gefunden</string>
+ <string name="kau_no_items_selected">Keine Datei ausgewählt</string>
+ <string name="kau_no_items_loaded">Keine Datei geladen</string>
+ <string name="kau_no_camera_found">Keine Kamera gefunden</string>
+ <string name="kau_no_camera_found_content">Bitte installieren Sie eine Kamera App und versuchen es erneut.</string>
+ <string name="kau_temp_file_creation_failed">Temporäre Datei konnte nicht erstellt werden.</string>
+ <string name="kau_select_media">Wähle Mediendatei</string>
</resources>
diff --git a/mediapicker/src/main/res/values-es-rES/strings_mediapicker.xml b/mediapicker/src/main/res/values-es-rES/strings_mediapicker.xml
index b7e164b..21da558 100644
--- a/mediapicker/src/main/res/values-es-rES/strings_mediapicker.xml
+++ b/mediapicker/src/main/res/values-es-rES/strings_mediapicker.xml
@@ -1,11 +1,10 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--Generated by crowdin.com-->
+<?xml version="1.0" encoding="utf-8"?><!--Generated by crowdin.com-->
<resources>
- <string name="kau_no_items_found">No se encontraron elementos</string>
- <string name="kau_no_items_selected">No se han seleccionado elementos</string>
- <string name="kau_no_items_loaded">No hay elementos cargados</string>
- <string name="kau_no_camera_found">No se ha encontrado ninguna cámara</string>
- <string name="kau_no_camera_found_content">Por favor, instala una app de la cámara y vuelve a intentarlo.</string>
- <string name="kau_temp_file_creation_failed">Error al crear archivo temporal.</string>
- <string name="kau_select_media">Seleccionar medios</string>
+ <string name="kau_no_items_found">No se encontraron elementos</string>
+ <string name="kau_no_items_selected">No se han seleccionado elementos</string>
+ <string name="kau_no_items_loaded">No hay elementos cargados</string>
+ <string name="kau_no_camera_found">No se ha encontrado ninguna cámara</string>
+ <string name="kau_no_camera_found_content">Por favor, instala una app de la cámara y vuelve a intentarlo.</string>
+ <string name="kau_temp_file_creation_failed">Error al crear archivo temporal.</string>
+ <string name="kau_select_media">Seleccionar medios</string>
</resources>
diff --git a/mediapicker/src/main/res/values-fr-rFR/strings_mediapicker.xml b/mediapicker/src/main/res/values-fr-rFR/strings_mediapicker.xml
index e32ad05..1705e9e 100644
--- a/mediapicker/src/main/res/values-fr-rFR/strings_mediapicker.xml
+++ b/mediapicker/src/main/res/values-fr-rFR/strings_mediapicker.xml
@@ -1,11 +1,10 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--Generated by crowdin.com-->
+<?xml version="1.0" encoding="utf-8"?><!--Generated by crowdin.com-->
<resources>
- <string name="kau_no_items_found">Aucun élément trouvé</string>
- <string name="kau_no_items_selected">Aucun élément n\'a été sélectionné</string>
- <string name="kau_no_items_loaded">Aucun élément chargé</string>
- <string name="kau_no_camera_found">Aucune caméra trouvée</string>
- <string name="kau_no_camera_found_content">Veuillez installer un application photo et ré-essayez.</string>
- <string name="kau_temp_file_creation_failed">Impossible de créer un fichier temporaire.</string>
- <string name="kau_select_media">Sélectionner un média</string>
+ <string name="kau_no_items_found">Aucun élément trouvé</string>
+ <string name="kau_no_items_selected">Aucun élément n\'a été sélectionné</string>
+ <string name="kau_no_items_loaded">Aucun élément chargé</string>
+ <string name="kau_no_camera_found">Aucune caméra trouvée</string>
+ <string name="kau_no_camera_found_content">Veuillez installer un application photo et ré-essayez.</string>
+ <string name="kau_temp_file_creation_failed">Impossible de créer un fichier temporaire.</string>
+ <string name="kau_select_media">Sélectionner un média</string>
</resources>
diff --git a/mediapicker/src/main/res/values-gl-rES/strings_mediapicker.xml b/mediapicker/src/main/res/values-gl-rES/strings_mediapicker.xml
index bc09ebe..1ad6650 100644
--- a/mediapicker/src/main/res/values-gl-rES/strings_mediapicker.xml
+++ b/mediapicker/src/main/res/values-gl-rES/strings_mediapicker.xml
@@ -1,11 +1,10 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--Generated by crowdin.com-->
+<?xml version="1.0" encoding="utf-8"?><!--Generated by crowdin.com-->
<resources>
- <string name="kau_no_items_found">Ningún elemento atopado</string>
- <string name="kau_no_items_selected">Ningún elemento seleccionado</string>
- <string name="kau_no_items_loaded">Ningún elemento cargado</string>
- <string name="kau_no_camera_found">Non se atopou a cámara</string>
- <string name="kau_no_camera_found_content">Instala unha app da cámara e téntao de novo.</string>
- <string name="kau_temp_file_creation_failed">Erro ao crear un ficheiro temporal.</string>
- <string name="kau_select_media">Seleccionar multimedia</string>
+ <string name="kau_no_items_found">Ningún elemento atopado</string>
+ <string name="kau_no_items_selected">Ningún elemento seleccionado</string>
+ <string name="kau_no_items_loaded">Ningún elemento cargado</string>
+ <string name="kau_no_camera_found">Non se atopou a cámara</string>
+ <string name="kau_no_camera_found_content">Instala unha app da cámara e téntao de novo.</string>
+ <string name="kau_temp_file_creation_failed">Erro ao crear un ficheiro temporal.</string>
+ <string name="kau_select_media">Seleccionar multimedia</string>
</resources>
diff --git a/mediapicker/src/main/res/values-hu-rHU/strings_mediapicker.xml b/mediapicker/src/main/res/values-hu-rHU/strings_mediapicker.xml
index b2d8dc6..b191d61 100644
--- a/mediapicker/src/main/res/values-hu-rHU/strings_mediapicker.xml
+++ b/mediapicker/src/main/res/values-hu-rHU/strings_mediapicker.xml
@@ -1,11 +1,10 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--Generated by crowdin.com-->
+<?xml version="1.0" encoding="utf-8"?><!--Generated by crowdin.com-->
<resources>
- <string name="kau_no_items_found">Nem található elem</string>
- <string name="kau_no_items_selected">Nincs kijelölt elem</string>
- <string name="kau_no_items_loaded">Nincs betöltött elem</string>
- <string name="kau_no_camera_found">Kamera nem található</string>
- <string name="kau_no_camera_found_content">Kérem telepítse a kamera alkalmazást, majd próbálja újra.</string>
- <string name="kau_temp_file_creation_failed">Nem sikerült létrehozni az ideiglenes fájlt.</string>
- <string name="kau_select_media">Média kiválasztása</string>
+ <string name="kau_no_items_found">Nem található elem</string>
+ <string name="kau_no_items_selected">Nincs kijelölt elem</string>
+ <string name="kau_no_items_loaded">Nincs betöltött elem</string>
+ <string name="kau_no_camera_found">Kamera nem található</string>
+ <string name="kau_no_camera_found_content">Kérem telepítse a kamera alkalmazást, majd próbálja újra.</string>
+ <string name="kau_temp_file_creation_failed">Nem sikerült létrehozni az ideiglenes fájlt.</string>
+ <string name="kau_select_media">Média kiválasztása</string>
</resources>
diff --git a/mediapicker/src/main/res/values-it-rIT/strings_mediapicker.xml b/mediapicker/src/main/res/values-it-rIT/strings_mediapicker.xml
index 7482c48..4b795b1 100644
--- a/mediapicker/src/main/res/values-it-rIT/strings_mediapicker.xml
+++ b/mediapicker/src/main/res/values-it-rIT/strings_mediapicker.xml
@@ -1,11 +1,10 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--Generated by crowdin.com-->
+<?xml version="1.0" encoding="utf-8"?><!--Generated by crowdin.com-->
<resources>
- <string name="kau_no_items_found">Nessun elemento trovato</string>
- <string name="kau_no_items_selected">Non è stato selezionato alcun elemento</string>
- <string name="kau_no_items_loaded">Nessun elemento caricato</string>
- <string name="kau_no_camera_found">Nessuna fotocamera è stata trovata</string>
- <string name="kau_no_camera_found_content">Reinstalla l\'app fotocamera e riprova.</string>
- <string name="kau_temp_file_creation_failed">Impossibile creare file temporaneo.</string>
- <string name="kau_select_media">Seleziona media</string>
+ <string name="kau_no_items_found">Nessun elemento trovato</string>
+ <string name="kau_no_items_selected">Non è stato selezionato alcun elemento</string>
+ <string name="kau_no_items_loaded">Nessun elemento caricato</string>
+ <string name="kau_no_camera_found">Nessuna fotocamera è stata trovata</string>
+ <string name="kau_no_camera_found_content">Reinstalla l\'app fotocamera e riprova.</string>
+ <string name="kau_temp_file_creation_failed">Impossibile creare file temporaneo.</string>
+ <string name="kau_select_media">Seleziona media</string>
</resources>
diff --git a/mediapicker/src/main/res/values-ko-rKR/strings_mediapicker.xml b/mediapicker/src/main/res/values-ko-rKR/strings_mediapicker.xml
index 484edfd..aab5e63 100644
--- a/mediapicker/src/main/res/values-ko-rKR/strings_mediapicker.xml
+++ b/mediapicker/src/main/res/values-ko-rKR/strings_mediapicker.xml
@@ -1,11 +1,10 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--Generated by crowdin.com-->
+<?xml version="1.0" encoding="utf-8"?><!--Generated by crowdin.com-->
<resources>
- <string name="kau_no_items_found">항목이 없습니다.</string>
- <string name="kau_no_items_selected">선택된 항목이 없습니다.</string>
- <string name="kau_no_items_loaded">가져온 항목이 없습니다.</string>
- <string name="kau_no_camera_found">카메라를 찾을 수 없습니다.</string>
- <string name="kau_no_camera_found_content">카메라 앱을 설치하고 다시 시도하세요.</string>
- <string name="kau_temp_file_creation_failed">임시 파일을 만들지 못했습니다.</string>
- <string name="kau_select_media">미디어 선택</string>
+ <string name="kau_no_items_found">항목이 없습니다.</string>
+ <string name="kau_no_items_selected">선택된 항목이 없습니다.</string>
+ <string name="kau_no_items_loaded">가져온 항목이 없습니다.</string>
+ <string name="kau_no_camera_found">카메라를 찾을 수 없습니다.</string>
+ <string name="kau_no_camera_found_content">카메라 앱을 설치하고 다시 시도하세요.</string>
+ <string name="kau_temp_file_creation_failed">임시 파일을 만들지 못했습니다.</string>
+ <string name="kau_select_media">미디어 선택</string>
</resources>
diff --git a/mediapicker/src/main/res/values-no-rNO/strings_mediapicker.xml b/mediapicker/src/main/res/values-no-rNO/strings_mediapicker.xml
index 18e6295..7b251bc 100644
--- a/mediapicker/src/main/res/values-no-rNO/strings_mediapicker.xml
+++ b/mediapicker/src/main/res/values-no-rNO/strings_mediapicker.xml
@@ -1,11 +1,10 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--Generated by crowdin.com-->
+<?xml version="1.0" encoding="utf-8"?><!--Generated by crowdin.com-->
<resources>
- <string name="kau_no_items_found">Ingen elementer funnet</string>
- <string name="kau_no_items_selected">Ingen elementer har blitt valgt</string>
- <string name="kau_no_items_loaded">Ingen elementer lastet</string>
- <string name="kau_no_camera_found">Ingen kameraer funnet</string>
- <string name="kau_no_camera_found_content">Vennligst installér en kameraapp og prøv på nytt.</string>
- <string name="kau_temp_file_creation_failed">Kunne ikke opprette en midlertidig fil.</string>
- <string name="kau_select_media">Velg media</string>
+ <string name="kau_no_items_found">Ingen elementer funnet</string>
+ <string name="kau_no_items_selected">Ingen elementer har blitt valgt</string>
+ <string name="kau_no_items_loaded">Ingen elementer lastet</string>
+ <string name="kau_no_camera_found">Ingen kameraer funnet</string>
+ <string name="kau_no_camera_found_content">Vennligst installér en kameraapp og prøv på nytt.</string>
+ <string name="kau_temp_file_creation_failed">Kunne ikke opprette en midlertidig fil.</string>
+ <string name="kau_select_media">Velg media</string>
</resources>
diff --git a/mediapicker/src/main/res/values-pt-rBR/strings_mediapicker.xml b/mediapicker/src/main/res/values-pt-rBR/strings_mediapicker.xml
index fdf1e92..bac9913 100644
--- a/mediapicker/src/main/res/values-pt-rBR/strings_mediapicker.xml
+++ b/mediapicker/src/main/res/values-pt-rBR/strings_mediapicker.xml
@@ -1,11 +1,10 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--Generated by crowdin.com-->
+<?xml version="1.0" encoding="utf-8"?><!--Generated by crowdin.com-->
<resources>
- <string name="kau_no_items_found">Nenhum item encontrado</string>
- <string name="kau_no_items_selected">Nenhum item foi selecionado</string>
- <string name="kau_no_items_loaded">Nenhum item carregado</string>
- <string name="kau_no_camera_found">Nenhuma câmera encontrada</string>
- <string name="kau_no_camera_found_content">Instale um aplicativo da câmera e tente novamente.</string>
- <string name="kau_temp_file_creation_failed">Falha ao criar um arquivo temporário.</string>
- <string name="kau_select_media">Selecione mídia</string>
+ <string name="kau_no_items_found">Nenhum item encontrado</string>
+ <string name="kau_no_items_selected">Nenhum item foi selecionado</string>
+ <string name="kau_no_items_loaded">Nenhum item carregado</string>
+ <string name="kau_no_camera_found">Nenhuma câmera encontrada</string>
+ <string name="kau_no_camera_found_content">Instale um aplicativo da câmera e tente novamente.</string>
+ <string name="kau_temp_file_creation_failed">Falha ao criar um arquivo temporário.</string>
+ <string name="kau_select_media">Selecione mídia</string>
</resources>
diff --git a/mediapicker/src/main/res/values-vi-rVN/strings_mediapicker.xml b/mediapicker/src/main/res/values-vi-rVN/strings_mediapicker.xml
index 6dfcb82..dae9f41 100644
--- a/mediapicker/src/main/res/values-vi-rVN/strings_mediapicker.xml
+++ b/mediapicker/src/main/res/values-vi-rVN/strings_mediapicker.xml
@@ -1,11 +1,10 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--Generated by crowdin.com-->
+<?xml version="1.0" encoding="utf-8"?><!--Generated by crowdin.com-->
<resources>
- <string name="kau_no_items_found">Không tìm thấy mục nào</string>
- <string name="kau_no_items_selected">Chưa chọn mục nào</string>
- <string name="kau_no_items_loaded">Không có mục nào</string>
- <string name="kau_no_camera_found">Không tìm thấy máy ảnh</string>
- <string name="kau_no_camera_found_content">Hãy cài một ứng dụng máy ảnh và thử lại.</string>
- <string name="kau_temp_file_creation_failed">Không thể tạo tập tin tạm thời.</string>
- <string name="kau_select_media">Chọn kiểu</string>
+ <string name="kau_no_items_found">Không tìm thấy mục nào</string>
+ <string name="kau_no_items_selected">Chưa chọn mục nào</string>
+ <string name="kau_no_items_loaded">Không có mục nào</string>
+ <string name="kau_no_camera_found">Không tìm thấy máy ảnh</string>
+ <string name="kau_no_camera_found_content">Hãy cài một ứng dụng máy ảnh và thử lại.</string>
+ <string name="kau_temp_file_creation_failed">Không thể tạo tập tin tạm thời.</string>
+ <string name="kau_select_media">Chọn kiểu</string>
</resources>
diff --git a/mediapicker/src/main/res/values-zh-rCN/strings_mediapicker.xml b/mediapicker/src/main/res/values-zh-rCN/strings_mediapicker.xml
index 86e85d5..2be3fc0 100644
--- a/mediapicker/src/main/res/values-zh-rCN/strings_mediapicker.xml
+++ b/mediapicker/src/main/res/values-zh-rCN/strings_mediapicker.xml
@@ -1,11 +1,10 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--Generated by crowdin.com-->
+<?xml version="1.0" encoding="utf-8"?><!--Generated by crowdin.com-->
<resources>
- <string name="kau_no_items_found">未找到项目</string>
- <string name="kau_no_items_selected">没有选择任何项目</string>
- <string name="kau_no_items_loaded">未载入任何项目</string>
- <string name="kau_no_camera_found">找不到摄像头</string>
- <string name="kau_no_camera_found_content">请安装一个摄像头应用程序,然后重试。</string>
- <string name="kau_temp_file_creation_failed">创建临时文件失败。</string>
- <string name="kau_select_media">选择媒体</string>
+ <string name="kau_no_items_found">未找到项目</string>
+ <string name="kau_no_items_selected">没有选择任何项目</string>
+ <string name="kau_no_items_loaded">未载入任何项目</string>
+ <string name="kau_no_camera_found">找不到摄像头</string>
+ <string name="kau_no_camera_found_content">请安装一个摄像头应用程序,然后重试。</string>
+ <string name="kau_temp_file_creation_failed">创建临时文件失败。</string>
+ <string name="kau_select_media">选择媒体</string>
</resources>