fixed status notification view id
gradle upgrade
This commit is contained in:
@@ -236,7 +236,7 @@ class BaresipService: Service() {
|
|||||||
snb.setVibrate(LongArray(0))
|
snb.setVibrate(LongArray(0))
|
||||||
val view = RemoteViews(getPackageName(), R.layout.status_notification)
|
val view = RemoteViews(getPackageName(), R.layout.status_notification)
|
||||||
view.setTextViewText(R.id.callFrom, "Call from ${Api.call_peeruri(callp)}")
|
view.setTextViewText(R.id.callFrom, "Call from ${Api.call_peeruri(callp)}")
|
||||||
view.setViewVisibility(R.id.incomingCall, View.VISIBLE)
|
view.setViewVisibility(R.id.callFrom, View.VISIBLE)
|
||||||
snb.setContent(view)
|
snb.setContent(view)
|
||||||
nm.notify(STATUS_NOTIFICATION_ID, snb.build())
|
nm.notify(STATUS_NOTIFICATION_ID, snb.build())
|
||||||
}
|
}
|
||||||
@@ -278,7 +278,7 @@ class BaresipService: Service() {
|
|||||||
"call established", "call closed" -> {
|
"call established", "call closed" -> {
|
||||||
nm.cancel(CALL_NOTIFICATION_ID)
|
nm.cancel(CALL_NOTIFICATION_ID)
|
||||||
val view = RemoteViews(getPackageName(), R.layout.status_notification)
|
val view = RemoteViews(getPackageName(), R.layout.status_notification)
|
||||||
view.setViewVisibility(R.id.incomingCall, View.GONE)
|
view.setViewVisibility(R.id.callFrom, View.GONE)
|
||||||
snb.setContent(view)
|
snb.setContent(view)
|
||||||
snb.setVibrate(null)
|
snb.setVibrate(null)
|
||||||
nm.notify(STATUS_NOTIFICATION_ID, snb.build())
|
nm.notify(STATUS_NOTIFICATION_ID, snb.build())
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ buildscript {
|
|||||||
google()
|
google()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.1.2'
|
classpath 'com.android.tools.build:gradle:3.1.3'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
|||||||
Reference in New Issue
Block a user