add a menu item for showing photo or video on map

This commit is contained in:
tibbi 2017-01-22 18:03:14 +01:00
parent c4f49c56c9
commit 06e6f8a3f5
13 changed files with 31 additions and 0 deletions

View file

@ -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) {

View file

@ -38,4 +38,8 @@
android:icon="@drawable/ic_info"
android:title="@string/properties"
app:showAsAction="ifRoom"/>
<item
android:id="@+id/show_on_map"
android:title="@string/show_on_map"
app:showAsAction="never"/>
</menu>

View file

@ -19,6 +19,8 @@
<string name="all_folders">Alle Medien</string>
<string name="folder_view">Wechsle zu Ordner Ansicht</string>
<string name="other_folder">andere Ordner</string>
<string name="show_on_map">Show on map</string>
<string name="unknown_location">Unknown location</string>
<!-- Resizing -->
<string name="resize">Größe ändern</string>

View file

@ -19,6 +19,8 @@
<string name="all_folders">All media</string>
<string name="folder_view">Switch to folder view</string>
<string name="other_folder">Other folder</string>
<string name="show_on_map">Show on map</string>
<string name="unknown_location">Unknown location</string>
<!-- Resizing -->
<string name="resize">Resize</string>

View file

@ -19,6 +19,8 @@
<string name="all_folders">Tous les dossiers</string>
<string name="folder_view">Permuter vers la vue du dossier</string>
<string name="other_folder">Autre dossier</string>
<string name="show_on_map">Show on map</string>
<string name="unknown_location">Unknown location</string>
<!-- Resizing -->
<string name="resize">Redimensionner</string>

View file

@ -19,6 +19,8 @@
<string name="all_folders">All media</string>
<string name="folder_view">Switch to folder view</string>
<string name="other_folder">Other folder</string>
<string name="show_on_map">Show on map</string>
<string name="unknown_location">Unknown location</string>
<!-- Resizing -->
<string name="resize">Resize</string>

View file

@ -19,6 +19,8 @@
<string name="all_folders">All media</string>
<string name="folder_view">Switch to folder view</string>
<string name="other_folder">Other folder</string>
<string name="show_on_map">Show on map</string>
<string name="unknown_location">Unknown location</string>
<!-- Resizing -->
<string name="resize">Resize</string>

View file

@ -19,6 +19,8 @@
<string name="all_folders">Todas as pastas</string>
<string name="folder_view">Alternar para a vista de pastas</string>
<string name="other_folder">Outra pasta</string>
<string name="show_on_map">Show on map</string>
<string name="unknown_location">Unknown location</string>
<!-- Resizing -->
<string name="resize">Redimensionar</string>

View file

@ -19,6 +19,8 @@
<string name="all_folders">Все медиафайлы</string>
<string name="folder_view">Переключиться к виду с папками</string>
<string name="other_folder">Другая папка</string>
<string name="show_on_map">Show on map</string>
<string name="unknown_location">Unknown location</string>
<!-- Resizing -->
<string name="resize">Изменить размер</string>

View file

@ -19,6 +19,8 @@
<string name="all_folders">Alla mappar</string>
<string name="folder_view">Byt till mappvy</string>
<string name="other_folder">Andra mappar</string>
<string name="show_on_map">Show on map</string>
<string name="unknown_location">Unknown location</string>
<!-- Resizing -->
<string name="resize">Ändra storlek</string>

View file

@ -19,6 +19,8 @@
<string name="all_folders">所有文件夹</string>
<string name="folder_view">切换到文件夹视图</string>
<string name="other_folder">其他文件夹</string>
<string name="show_on_map">Show on map</string>
<string name="unknown_location">Unknown location</string>
<!-- Resizing -->
<string name="resize">缩放</string>

View file

@ -19,6 +19,8 @@
<string name="all_folders">所有資料夾</string>
<string name="folder_view">切換到資料夾檢視</string>
<string name="other_folder">其他資料夾</string>
<string name="show_on_map">Show on map</string>
<string name="unknown_location">Unknown location</string>
<!-- Resizing -->
<string name="resize">縮放</string>

View file

@ -19,6 +19,8 @@
<string name="all_folders">All folders</string>
<string name="folder_view">Switch to folder view</string>
<string name="other_folder">Other folder</string>
<string name="show_on_map">Show on map</string>
<string name="unknown_location">Unknown location</string>
<!-- Resizing -->
<string name="resize">Resize</string>