fixed status notification view id

gradle upgrade
This commit is contained in:
Juha Heinanen
2018-06-27 17:22:08 +03:00
parent 82c717d75f
commit 0500c4b6ab
2 changed files with 3 additions and 3 deletions
@@ -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
View File
@@ -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