minor changes due to sdk 26 requirements

This commit is contained in:
Juha Heinanen
2018-06-30 20:26:18 +03:00
parent 1ab5b6fe5e
commit 0c68c92a70
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ class BaresipService: Service() {
snb.setVisibility(VISIBILITY_PUBLIC)
.setSmallIcon(R.drawable.ic_stat)
.setContentIntent(npi)
.setPriority(Notification.PRIORITY_HIGH)
.setPriority(NotificationManager.IMPORTANCE_HIGH)
.setOngoing(true)
.setContent(RemoteViews(packageName, R.layout.status_notification))
if (RUN_FOREGROUNG)

View File

@ -495,7 +495,7 @@ class MainActivity : AppCompatActivity() {
if (callButton.tag == "Call") {
callee.setOnKeyListener(null)
}
val caller_heading = layout.findViewById(view_id)
val caller_heading = layout.findViewById(view_id) as TextView
val view_index = layout.indexOfChild(caller_heading)
layout.removeViews(view_index, 3 * remove_count)
val callsIn = Call.uaCalls(calls, ua, "in")