From 0500c4b6ab4ccad678e8906f1f143c69e3b03161 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Wed, 27 Jun 2018 17:22:08 +0300 Subject: [PATCH] fixed status notification view id gradle upgrade --- app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt | 4 ++-- build.gradle | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt index 253a37e7..81e8f49f 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt @@ -236,7 +236,7 @@ class BaresipService: Service() { snb.setVibrate(LongArray(0)) val view = RemoteViews(getPackageName(), R.layout.status_notification) 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) nm.notify(STATUS_NOTIFICATION_ID, snb.build()) } @@ -278,7 +278,7 @@ class BaresipService: Service() { "call established", "call closed" -> { nm.cancel(CALL_NOTIFICATION_ID) 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.setVibrate(null) nm.notify(STATUS_NOTIFICATION_ID, snb.build()) diff --git a/build.gradle b/build.gradle index e5c835f9..af5b5347 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { google() } 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" // NOTE: Do not place your application dependencies here; they belong