- Added safety check to Utils.addActivity function.
This commit is contained in:
@@ -561,7 +561,7 @@ object Utils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun addActivity(activity: String) {
|
fun addActivity(activity: String) {
|
||||||
if (BaresipService.activities.first() != activity)
|
if ((BaresipService.activities.size == 0) || (BaresipService.activities[0] != activity))
|
||||||
BaresipService.activities.add(0, activity)
|
BaresipService.activities.add(0, activity)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user