mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-22 23:58:47 +01:00
Makes MediaFileUtils function internal
This commit is contained in:
parent
4a010a7a2a
commit
0556a3d088
@ -22,7 +22,7 @@ import java.text.SimpleDateFormat
|
||||
import java.util.Date
|
||||
import java.util.Locale
|
||||
|
||||
fun createTemporaryMediaFile(context: Context, mediaType: MediaType): File {
|
||||
internal fun createTemporaryMediaFile(context: Context, mediaType: MediaType): File {
|
||||
val timeStamp: String = SimpleDateFormat("yyyyMMdd_HHmmss", Locale.getDefault()).format(Date())
|
||||
val storageDir: File = context.filesDir.also { it.mkdirs() }
|
||||
val fileSuffix = when (mediaType) {
|
||||
|
Loading…
Reference in New Issue
Block a user