updating commons to 5.24.3

This commit is contained in:
tibbi 2020-03-29 22:59:35 +02:00
parent 882aa98c46
commit fda430a87a
2 changed files with 3 additions and 4 deletions

View File

@ -38,5 +38,5 @@ android {
} }
dependencies { dependencies {
implementation 'com.simplemobiletools:commons:5.24.2' implementation 'com.simplemobiletools:commons:5.24.3'
} }

View File

@ -1,16 +1,15 @@
package com.simplemobiletools.voicerecorder.activities package com.simplemobiletools.voicerecorder.activities
import android.annotation.SuppressLint
import android.content.ContentValues import android.content.ContentValues
import android.content.Intent import android.content.Intent
import android.graphics.drawable.Drawable import android.graphics.drawable.Drawable
import android.media.MediaRecorder import android.media.MediaRecorder
import android.media.MediaScannerConnection import android.media.MediaScannerConnection
import android.os.Build
import android.os.Bundle import android.os.Bundle
import android.provider.MediaStore import android.provider.MediaStore
import android.view.Menu import android.view.Menu
import android.view.MenuItem import android.view.MenuItem
import androidx.annotation.RequiresApi
import com.simplemobiletools.commons.extensions.* import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.PERMISSION_RECORD_AUDIO import com.simplemobiletools.commons.helpers.PERMISSION_RECORD_AUDIO
import com.simplemobiletools.commons.helpers.PERMISSION_WRITE_STORAGE import com.simplemobiletools.commons.helpers.PERMISSION_WRITE_STORAGE
@ -138,7 +137,7 @@ class MainActivity : SimpleActivity() {
recorder = null recorder = null
} }
@RequiresApi(Build.VERSION_CODES.Q) @SuppressLint("InlinedApi")
private fun addFileInNewMediaStore() { private fun addFileInNewMediaStore() {
val audioCollection = MediaStore.Audio.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY) val audioCollection = MediaStore.Audio.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY)