- Fixed crash when resuming to previously destroyed main activity.
- Correctly show incoming call when resuming to main activity.
This commit is contained in:
@@ -549,9 +549,7 @@ class MainActivity : AppCompatActivity() {
|
||||
"message show", "message reply" ->
|
||||
handleServiceEvent(resumeAction, arrayListOf(resumeUap, resumeUri))
|
||||
else -> {
|
||||
if (!BaresipService.activities.isEmpty()) {
|
||||
restoreActivities()
|
||||
} else {
|
||||
if (!BaresipService.activities.isEmpty()) restoreActivities()
|
||||
if (UserAgent.uas().size > 0) {
|
||||
val currentPosition = aorSpinner.selectedItemPosition
|
||||
uaAdapter = UaSpinnerAdapter(applicationContext, UserAgent.uas(),
|
||||
@@ -568,8 +566,6 @@ class MainActivity : AppCompatActivity() {
|
||||
showCall(UserAgent.uas()[aorSpinner.selectedItemPosition])
|
||||
}
|
||||
}
|
||||
uaAdapter.notifyDataSetChanged()
|
||||
}
|
||||
}
|
||||
resumeAction = ""
|
||||
resumeUri = ""
|
||||
|
||||
Reference in New Issue
Block a user