minor changes due to sdk 26 requirements
This commit is contained in:
@@ -177,7 +177,7 @@ class BaresipService: Service() {
|
|||||||
snb.setVisibility(VISIBILITY_PUBLIC)
|
snb.setVisibility(VISIBILITY_PUBLIC)
|
||||||
.setSmallIcon(R.drawable.ic_stat)
|
.setSmallIcon(R.drawable.ic_stat)
|
||||||
.setContentIntent(npi)
|
.setContentIntent(npi)
|
||||||
.setPriority(Notification.PRIORITY_HIGH)
|
.setPriority(NotificationManager.IMPORTANCE_HIGH)
|
||||||
.setOngoing(true)
|
.setOngoing(true)
|
||||||
.setContent(RemoteViews(packageName, R.layout.status_notification))
|
.setContent(RemoteViews(packageName, R.layout.status_notification))
|
||||||
if (RUN_FOREGROUNG)
|
if (RUN_FOREGROUNG)
|
||||||
|
|||||||
@@ -495,7 +495,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
if (callButton.tag == "Call") {
|
if (callButton.tag == "Call") {
|
||||||
callee.setOnKeyListener(null)
|
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)
|
val view_index = layout.indexOfChild(caller_heading)
|
||||||
layout.removeViews(view_index, 3 * remove_count)
|
layout.removeViews(view_index, 3 * remove_count)
|
||||||
val callsIn = Call.uaCalls(calls, ua, "in")
|
val callsIn = Call.uaCalls(calls, ua, "in")
|
||||||
|
|||||||
Reference in New Issue
Block a user