From 06e6f8a3f53f9f368a505da5e7a5462f29b8cedb Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 22 Jan 2017 18:03:14 +0100 Subject: [PATCH] add a menu item for showing photo or video on map --- .../gallery/activities/ViewPagerActivity.kt | 5 +++++ app/src/main/res/menu/viewpager_menu.xml | 4 ++++ app/src/main/res/values-de/strings.xml | 2 ++ app/src/main/res/values-es/strings.xml | 2 ++ app/src/main/res/values-fr/strings.xml | 2 ++ app/src/main/res/values-it/strings.xml | 2 ++ app/src/main/res/values-ja/strings.xml | 2 ++ app/src/main/res/values-pt-rPT/strings.xml | 2 ++ app/src/main/res/values-ru/strings.xml | 2 ++ app/src/main/res/values-sv/strings.xml | 2 ++ app/src/main/res/values-zh-rCN/strings.xml | 2 ++ app/src/main/res/values-zh-rTW/strings.xml | 2 ++ app/src/main/res/values/strings.xml | 2 ++ 13 files changed, 31 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index 26e0c0758..848a20a30 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -107,6 +107,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View R.id.menu_rename -> renameFile() R.id.menu_edit -> openEditor(getCurrentFile()) R.id.menu_properties -> showProperties() + R.id.show_on_map -> showOnMap() else -> return super.onOptionsItemSelected(item) } return true @@ -145,6 +146,10 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View PropertiesDialog(this, getCurrentMedium()!!.path, false) } + private fun showOnMap() { + + } + override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) { if (requestCode == REQUEST_EDIT_IMAGE) { if (resultCode == Activity.RESULT_OK && resultData != null) { diff --git a/app/src/main/res/menu/viewpager_menu.xml b/app/src/main/res/menu/viewpager_menu.xml index 62afbc6db..7ff9c98f6 100644 --- a/app/src/main/res/menu/viewpager_menu.xml +++ b/app/src/main/res/menu/viewpager_menu.xml @@ -38,4 +38,8 @@ android:icon="@drawable/ic_info" android:title="@string/properties" app:showAsAction="ifRoom"/> + diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 76df2d93a..2323f7c0f 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -19,6 +19,8 @@ Alle Medien Wechsle zu Ordner Ansicht andere Ordner + Show on map + Unknown location Größe ändern diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 6169b4c64..83eac85f0 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -19,6 +19,8 @@ All media Switch to folder view Other folder + Show on map + Unknown location Resize diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index d3ed0213d..55341838d 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -19,6 +19,8 @@ Tous les dossiers Permuter vers la vue du dossier Autre dossier + Show on map + Unknown location Redimensionner diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 99a45c14c..20a1379e2 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -19,6 +19,8 @@ All media Switch to folder view Other folder + Show on map + Unknown location Resize diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index b47d43284..5a0e297fe 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -19,6 +19,8 @@ All media Switch to folder view Other folder + Show on map + Unknown location Resize diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index 0b600de39..f7a6b5bff 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -19,6 +19,8 @@ Todas as pastas Alternar para a vista de pastas Outra pasta + Show on map + Unknown location Redimensionar diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 1647bc6ed..dd24d986e 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -19,6 +19,8 @@ Все медиафайлы Переключиться к виду с папками Другая папка + Show on map + Unknown location Изменить размер diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index ac761a655..5b6853cd0 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -19,6 +19,8 @@ Alla mappar Byt till mappvy Andra mappar + Show on map + Unknown location Ändra storlek diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index d03958d5b..5495776ea 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -19,6 +19,8 @@ 所有文件夹 切换到文件夹视图 其他文件夹 + Show on map + Unknown location 缩放 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 96cf7a619..77517bcf0 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -19,6 +19,8 @@ 所有資料夾 切換到資料夾檢視 其他資料夾 + Show on map + Unknown location 縮放 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8b17aa1c0..f35f523d2 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -19,6 +19,8 @@ All folders Switch to folder view Other folder + Show on map + Unknown location Resize