Merge branch 'master' of github.com:SimpleMobileTools/Simple-Voice-Recorder

This commit is contained in:
tibbi 2023-07-31 18:13:44 +02:00
commit 7eeaa14fbb
3 changed files with 5 additions and 4 deletions

View File

@ -9,12 +9,12 @@ if (keystorePropertiesFile.exists()) {
}
android {
compileSdkVersion 33
compileSdkVersion 34
defaultConfig {
applicationId "com.simplemobiletools.voicerecorder"
minSdkVersion 23
targetSdkVersion 33
targetSdkVersion 34
versionCode 37
versionName "5.11.4"
setProperty("archivesBaseName", "voice-recorder")

View File

@ -7,6 +7,7 @@
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
@ -106,6 +107,7 @@
<service
android:name=".services.RecorderService"
android:foregroundServiceType="microphone"
android:exported="false">
<intent-filter>
<action android:name="com.simplemobiletools.voicerecorder.action.GET_RECORDER_INFO" />

View File

@ -273,7 +273,7 @@ class RecorderService : Service() {
visibility = NotificationCompat.VISIBILITY_SECRET
}
val builder = NotificationCompat.Builder(this)
val builder = NotificationCompat.Builder(this, channelId)
.setContentTitle(title)
.setContentText(text)
.setSmallIcon(icon)
@ -283,7 +283,6 @@ class RecorderService : Service() {
.setSound(null)
.setOngoing(true)
.setAutoCancel(true)
.setChannelId(channelId)
return builder.build()
}