Fixed About text background
This commit is contained in:
@ -2,9 +2,6 @@ package com.tutpro.baresip
|
|||||||
|
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.text.method.LinkMovementMethod
|
|
||||||
import android.view.MenuItem
|
|
||||||
import android.widget.TextView
|
|
||||||
import androidx.activity.ComponentActivity
|
import androidx.activity.ComponentActivity
|
||||||
import androidx.activity.OnBackPressedCallback
|
import androidx.activity.OnBackPressedCallback
|
||||||
import androidx.activity.compose.setContent
|
import androidx.activity.compose.setContent
|
||||||
@ -34,8 +31,6 @@ import androidx.compose.ui.text.TextLinkStyles
|
|||||||
import androidx.compose.ui.text.font.FontWeight
|
import androidx.compose.ui.text.font.FontWeight
|
||||||
import androidx.compose.ui.text.fromHtml
|
import androidx.compose.ui.text.fromHtml
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import androidx.compose.ui.viewinterop.AndroidView
|
|
||||||
import androidx.core.text.HtmlCompat
|
|
||||||
|
|
||||||
class AboutActivity : ComponentActivity() {
|
class AboutActivity : ComponentActivity() {
|
||||||
|
|
||||||
@ -114,22 +109,11 @@ class AboutActivity : ComponentActivity() {
|
|||||||
.padding(contentPadding)
|
.padding(contentPadding)
|
||||||
.verticalScroll(rememberScrollState())
|
.verticalScroll(rememberScrollState())
|
||||||
.fillMaxSize()
|
.fillMaxSize()
|
||||||
.background(MaterialTheme.colorScheme.background)
|
.background(LocalCustomColors.current.background)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
|
||||||
|
|
||||||
when (item.itemId) {
|
|
||||||
android.R.id.home ->
|
|
||||||
goBack()
|
|
||||||
}
|
|
||||||
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun goBack() {
|
private fun goBack() {
|
||||||
BaresipService.activities.remove("about")
|
BaresipService.activities.remove("about")
|
||||||
setResult(RESULT_CANCELED, Intent())
|
setResult(RESULT_CANCELED, Intent())
|
||||||
|
|||||||
Reference in New Issue
Block a user