|
@@ -30,6 +30,7 @@ import android.os.Parcelable
|
|
|
import android.view.LayoutInflater
|
|
|
import android.view.View
|
|
|
import android.view.ViewGroup
|
|
|
+import androidx.annotation.VisibleForTesting
|
|
|
import androidx.core.content.ContextCompat
|
|
|
import androidx.fragment.app.Fragment
|
|
|
import com.nextcloud.android.common.ui.theme.utils.ColorRole
|
|
@@ -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)
|