adding GPS coordinates to the available extended details to show
This commit is contained in:
parent
b48ca1b4cc
commit
4f6bf2de5c
4 changed files with 13 additions and 1 deletions
|
@ -61,7 +61,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:5.14.13'
|
||||
implementation 'com.simplemobiletools:commons:5.14.14'
|
||||
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
||||
implementation 'androidx.multidex:multidex:2.0.1'
|
||||
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
||||
|
|
|
@ -25,6 +25,7 @@ class ManageExtendedDetailsDialog(val activity: BaseSimpleActivity, val callback
|
|||
manage_extended_details_duration.isChecked = details and EXT_DURATION != 0
|
||||
manage_extended_details_artist.isChecked = details and EXT_ARTIST != 0
|
||||
manage_extended_details_album.isChecked = details and EXT_ALBUM != 0
|
||||
manage_extended_details_gps_coordinates.isChecked = details and EXT_GPS != 0
|
||||
}
|
||||
|
||||
AlertDialog.Builder(activity)
|
||||
|
@ -60,6 +61,8 @@ class ManageExtendedDetailsDialog(val activity: BaseSimpleActivity, val callback
|
|||
result += EXT_ARTIST
|
||||
if (manage_extended_details_album.isChecked)
|
||||
result += EXT_ALBUM
|
||||
if (manage_extended_details_gps_coordinates.isChecked)
|
||||
result += EXT_GPS
|
||||
}
|
||||
|
||||
activity.config.extendedDetails = result
|
||||
|
|
|
@ -154,6 +154,7 @@ const val EXT_EXIF_PROPERTIES = 128
|
|||
const val EXT_DURATION = 256
|
||||
const val EXT_ARTIST = 512
|
||||
const val EXT_ALBUM = 1024
|
||||
const val EXT_GPS = 2048
|
||||
|
||||
// media types
|
||||
const val TYPE_IMAGES = 1
|
||||
|
|
|
@ -78,6 +78,14 @@
|
|||
android:paddingBottom="@dimen/activity_margin"
|
||||
android:text="@string/exif"/>
|
||||
|
||||
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||
android:id="@+id/manage_extended_details_gps_coordinates"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="@dimen/activity_margin"
|
||||
android:paddingBottom="@dimen/activity_margin"
|
||||
android:text="@string/gps_coordinates"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/divider"
|
||||
android:layout_width="match_parent"
|
||||
|
|
Loading…
Reference in a new issue