- changed importance of default notification channel to low in order to
avoid noise when status notification is updated - small cleanups
This commit is contained in:
@ -7,8 +7,8 @@ android {
|
|||||||
applicationId = 'com.tutpro.baresip'
|
applicationId = 'com.tutpro.baresip'
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 27
|
targetSdkVersion 27
|
||||||
versionCode = 30
|
versionCode = 31
|
||||||
versionName = '3.2.1'
|
versionName = '3.2.2'
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
cmake {
|
cmake {
|
||||||
cFlags '-DHAVE_INTTYPES_H'
|
cFlags '-DHAVE_INTTYPES_H'
|
||||||
|
|||||||
@ -17,8 +17,6 @@ import android.util.Log
|
|||||||
import android.view.View
|
import android.view.View
|
||||||
import android.widget.RemoteViews
|
import android.widget.RemoteViews
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.FileInputStream
|
|
||||||
import java.io.ObjectInputStream
|
|
||||||
import android.support.v4.content.LocalBroadcastManager
|
import android.support.v4.content.LocalBroadcastManager
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.support.v4.app.NotificationCompat.VISIBILITY_PRIVATE
|
import android.support.v4.app.NotificationCompat.VISIBILITY_PRIVATE
|
||||||
@ -184,7 +182,7 @@ class BaresipService: Service() {
|
|||||||
private fun createNotificationChannels() {
|
private fun createNotificationChannels() {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
val defaultChannel = NotificationChannel(DEFAULT_CHANNEL_ID, "Default",
|
val defaultChannel = NotificationChannel(DEFAULT_CHANNEL_ID, "Default",
|
||||||
NotificationManager.IMPORTANCE_DEFAULT)
|
NotificationManager.IMPORTANCE_LOW)
|
||||||
defaultChannel.description = "Tells that baresip is running"
|
defaultChannel.description = "Tells that baresip is running"
|
||||||
defaultChannel.lockscreenVisibility = Notification.VISIBILITY_PUBLIC
|
defaultChannel.lockscreenVisibility = Notification.VISIBILITY_PUBLIC
|
||||||
nm.createNotificationChannel(defaultChannel)
|
nm.createNotificationChannel(defaultChannel)
|
||||||
|
|||||||
@ -174,7 +174,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:hint="SIP URI"
|
android:hint="SIP URI"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
android:inputType="textUri"
|
android:inputType="textEmailAddress"
|
||||||
android:layout_width="fill_parent">
|
android:layout_width="fill_parent">
|
||||||
</EditText>
|
</EditText>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user