mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
add a menu item for showing photo or video on map
This commit is contained in:
parent
c4f49c56c9
commit
06e6f8a3f5
13 changed files with 31 additions and 0 deletions
|
@ -107,6 +107,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
R.id.menu_rename -> renameFile()
|
R.id.menu_rename -> renameFile()
|
||||||
R.id.menu_edit -> openEditor(getCurrentFile())
|
R.id.menu_edit -> openEditor(getCurrentFile())
|
||||||
R.id.menu_properties -> showProperties()
|
R.id.menu_properties -> showProperties()
|
||||||
|
R.id.show_on_map -> showOnMap()
|
||||||
else -> return super.onOptionsItemSelected(item)
|
else -> return super.onOptionsItemSelected(item)
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
@ -145,6 +146,10 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
PropertiesDialog(this, getCurrentMedium()!!.path, false)
|
PropertiesDialog(this, getCurrentMedium()!!.path, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun showOnMap() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
|
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
|
||||||
if (requestCode == REQUEST_EDIT_IMAGE) {
|
if (requestCode == REQUEST_EDIT_IMAGE) {
|
||||||
if (resultCode == Activity.RESULT_OK && resultData != null) {
|
if (resultCode == Activity.RESULT_OK && resultData != null) {
|
||||||
|
|
|
@ -38,4 +38,8 @@
|
||||||
android:icon="@drawable/ic_info"
|
android:icon="@drawable/ic_info"
|
||||||
android:title="@string/properties"
|
android:title="@string/properties"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
|
<item
|
||||||
|
android:id="@+id/show_on_map"
|
||||||
|
android:title="@string/show_on_map"
|
||||||
|
app:showAsAction="never"/>
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
<string name="all_folders">Alle Medien</string>
|
<string name="all_folders">Alle Medien</string>
|
||||||
<string name="folder_view">Wechsle zu Ordner Ansicht</string>
|
<string name="folder_view">Wechsle zu Ordner Ansicht</string>
|
||||||
<string name="other_folder">andere Ordner</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 -->
|
<!-- Resizing -->
|
||||||
<string name="resize">Größe ändern</string>
|
<string name="resize">Größe ändern</string>
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
<string name="all_folders">All media</string>
|
<string name="all_folders">All media</string>
|
||||||
<string name="folder_view">Switch to folder view</string>
|
<string name="folder_view">Switch to folder view</string>
|
||||||
<string name="other_folder">Other folder</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 -->
|
<!-- Resizing -->
|
||||||
<string name="resize">Resize</string>
|
<string name="resize">Resize</string>
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
<string name="all_folders">Tous les dossiers</string>
|
<string name="all_folders">Tous les dossiers</string>
|
||||||
<string name="folder_view">Permuter vers la vue du dossier</string>
|
<string name="folder_view">Permuter vers la vue du dossier</string>
|
||||||
<string name="other_folder">Autre 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 -->
|
<!-- Resizing -->
|
||||||
<string name="resize">Redimensionner</string>
|
<string name="resize">Redimensionner</string>
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
<string name="all_folders">All media</string>
|
<string name="all_folders">All media</string>
|
||||||
<string name="folder_view">Switch to folder view</string>
|
<string name="folder_view">Switch to folder view</string>
|
||||||
<string name="other_folder">Other folder</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 -->
|
<!-- Resizing -->
|
||||||
<string name="resize">Resize</string>
|
<string name="resize">Resize</string>
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
<string name="all_folders">All media</string>
|
<string name="all_folders">All media</string>
|
||||||
<string name="folder_view">Switch to folder view</string>
|
<string name="folder_view">Switch to folder view</string>
|
||||||
<string name="other_folder">Other folder</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 -->
|
<!-- Resizing -->
|
||||||
<string name="resize">Resize</string>
|
<string name="resize">Resize</string>
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
<string name="all_folders">Todas as pastas</string>
|
<string name="all_folders">Todas as pastas</string>
|
||||||
<string name="folder_view">Alternar para a vista de pastas</string>
|
<string name="folder_view">Alternar para a vista de pastas</string>
|
||||||
<string name="other_folder">Outra pasta</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 -->
|
<!-- Resizing -->
|
||||||
<string name="resize">Redimensionar</string>
|
<string name="resize">Redimensionar</string>
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
<string name="all_folders">Все медиафайлы</string>
|
<string name="all_folders">Все медиафайлы</string>
|
||||||
<string name="folder_view">Переключиться к виду с папками</string>
|
<string name="folder_view">Переключиться к виду с папками</string>
|
||||||
<string name="other_folder">Другая папка</string>
|
<string name="other_folder">Другая папка</string>
|
||||||
|
<string name="show_on_map">Show on map</string>
|
||||||
|
<string name="unknown_location">Unknown location</string>
|
||||||
|
|
||||||
<!-- Resizing -->
|
<!-- Resizing -->
|
||||||
<string name="resize">Изменить размер</string>
|
<string name="resize">Изменить размер</string>
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
<string name="all_folders">Alla mappar</string>
|
<string name="all_folders">Alla mappar</string>
|
||||||
<string name="folder_view">Byt till mappvy</string>
|
<string name="folder_view">Byt till mappvy</string>
|
||||||
<string name="other_folder">Andra mappar</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 -->
|
<!-- Resizing -->
|
||||||
<string name="resize">Ändra storlek</string>
|
<string name="resize">Ändra storlek</string>
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
<string name="all_folders">所有文件夹</string>
|
<string name="all_folders">所有文件夹</string>
|
||||||
<string name="folder_view">切换到文件夹视图</string>
|
<string name="folder_view">切换到文件夹视图</string>
|
||||||
<string name="other_folder">其他文件夹</string>
|
<string name="other_folder">其他文件夹</string>
|
||||||
|
<string name="show_on_map">Show on map</string>
|
||||||
|
<string name="unknown_location">Unknown location</string>
|
||||||
|
|
||||||
<!-- Resizing -->
|
<!-- Resizing -->
|
||||||
<string name="resize">缩放</string>
|
<string name="resize">缩放</string>
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
<string name="all_folders">所有資料夾</string>
|
<string name="all_folders">所有資料夾</string>
|
||||||
<string name="folder_view">切換到資料夾檢視</string>
|
<string name="folder_view">切換到資料夾檢視</string>
|
||||||
<string name="other_folder">其他資料夾</string>
|
<string name="other_folder">其他資料夾</string>
|
||||||
|
<string name="show_on_map">Show on map</string>
|
||||||
|
<string name="unknown_location">Unknown location</string>
|
||||||
|
|
||||||
<!-- Resizing -->
|
<!-- Resizing -->
|
||||||
<string name="resize">縮放</string>
|
<string name="resize">縮放</string>
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
<string name="all_folders">All folders</string>
|
<string name="all_folders">All folders</string>
|
||||||
<string name="folder_view">Switch to folder view</string>
|
<string name="folder_view">Switch to folder view</string>
|
||||||
<string name="other_folder">Other folder</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 -->
|
<!-- Resizing -->
|
||||||
<string name="resize">Resize</string>
|
<string name="resize">Resize</string>
|
||||||
|
|
Loading…
Reference in a new issue