Skip to content

Commit

Permalink
[fix]修复更新对话框日志字体颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyD666 committed May 31, 2023
1 parent 6035f66 commit 4a01124
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ android {
applicationId "com.skyd.rays"
minSdk 24
targetSdk 33
versionCode 9
versionName "1.1"
versionCode 10
versionName "1.2"
flavorDimensions "versionName"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.Card
import androidx.compose.material3.CardDefaults
import androidx.compose.material3.Checkbox
import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
Expand All @@ -28,6 +29,7 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.semantics.Role
Expand Down Expand Up @@ -137,9 +139,11 @@ private fun NewerDialog(
)
)
}
val textColor = LocalContentColor.current
AndroidView(
factory = { context ->
TextView(context).apply {
setTextColor(textColor.toArgb())
setTextIsSelectable(true)
movementMethod = LinkMovementMethod.getInstance()
isSingleLine = false
Expand Down

0 comments on commit 4a01124

Please sign in to comment.