|
@@ -49,6 +49,7 @@ import kotlinx.coroutines.Dispatchers
|
|
|
import kotlinx.coroutines.launch
|
|
|
import kotlinx.coroutines.withContext
|
|
|
import kotlinx.parcelize.Parcelize
|
|
|
+import org.jetbrains.annotations.VisibleForTesting
|
|
|
import org.osmdroid.config.Configuration
|
|
|
import org.osmdroid.tileprovider.tilesource.TileSourceFactory
|
|
|
import org.osmdroid.util.GeoPoint
|
|
@@ -260,6 +261,11 @@ class ImageDetailFragment : Fragment(), Injectable {
|
|
|
binding.imageLocationMapCopyright.text = binding.imageLocationMap.tileProvider.tileSource.copyrightNotice
|
|
|
}
|
|
|
|
|
|
+ @VisibleForTesting
|
|
|
+ fun hideMap() {
|
|
|
+ binding.imageLocationMap.visibility = View.GONE
|
|
|
+ }
|
|
|
+
|
|
|
@SuppressLint("SimpleDateFormat")
|
|
|
private fun gatherMetadata() {
|
|
|
val fileSize = DisplayUtils.bytesToHumanReadable(file.fileLength)
|