Minor call and call details improvements
This commit is contained in:
@ -144,7 +144,6 @@ class CallDetailsActivity : ComponentActivity() {
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.background(LocalCustomColors.current.background)
|
||||
.padding(contentPadding)
|
||||
.padding(top = 16.dp, start = 16.dp, end = 4.dp, bottom = 16.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(12.dp)
|
||||
@ -357,21 +356,6 @@ class CallDetailsActivity : ComponentActivity() {
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||
|
||||
if (BaresipService.activities.indexOf("call_details,$aor,$peer,$position") == -1)
|
||||
return true
|
||||
|
||||
when (item.itemId) {
|
||||
android.R.id.home -> {
|
||||
goBack()
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return super.onOptionsItemSelected(item)
|
||||
}
|
||||
|
||||
private fun goBack() {
|
||||
BaresipService.activities.remove("call_details,$aor,$peer,$position")
|
||||
decPlayer.stop()
|
||||
|
||||
@ -21,6 +21,7 @@ import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
@ -210,7 +211,6 @@ class CallsActivity : ComponentActivity() {
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.background(LocalCustomColors.current.background)
|
||||
.padding(contentPadding)
|
||||
.padding(bottom = 16.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(12.dp)
|
||||
@ -258,9 +258,7 @@ class CallsActivity : ComponentActivity() {
|
||||
verticalArrangement = Arrangement.spacedBy(12.dp),
|
||||
) {
|
||||
items(items = uaHistory.value) { callRow ->
|
||||
|
||||
var recordings = false
|
||||
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
@ -304,6 +302,7 @@ class CallsActivity : ComponentActivity() {
|
||||
ImageAvatar(avatarImage)
|
||||
}
|
||||
}
|
||||
Spacer(modifier = Modifier.width(4.dp))
|
||||
var count = 1
|
||||
for (d in callRow.details) {
|
||||
if (d.recording[0] != "")
|
||||
|
||||
Reference in New Issue
Block a user