Skip to content

Commit 16521d1

Browse files
committed
Fix subtitle text not changing.
Fix incorrect button icons.
1 parent cbd979d commit 16521d1

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

app/src/main/java/com/OxGames/Pluvia/ui/screen/settings/SettingsGroupDebug.kt

+8-11
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import androidx.compose.foundation.layout.statusBars
1313
import androidx.compose.foundation.rememberScrollState
1414
import androidx.compose.foundation.verticalScroll
1515
import androidx.compose.material.icons.Icons
16+
import androidx.compose.material.icons.filled.Close
1617
import androidx.compose.material.icons.filled.Save
17-
import androidx.compose.material.icons.filled.Share
1818
import androidx.compose.material3.CenterAlignedTopAppBar
1919
import androidx.compose.material3.ExperimentalMaterial3Api
2020
import androidx.compose.material3.Icon
@@ -104,15 +104,15 @@ fun SettingsGroupDebug() {
104104
navigationIcon = {
105105
IconButton(
106106
onClick = { showLogcatDialog = false },
107-
content = { Icon(Icons.Default.Save, null) },
107+
content = { Icon(Icons.Default.Close, null) },
108108
)
109109
},
110110
actions = {
111111
IconButton(
112112
onClick = {
113113
saveResultContract.launch(latestCrashFile!!.name)
114114
},
115-
content = { Icon(Icons.Default.Share, null) },
115+
content = { Icon(Icons.Default.Save, null) },
116116
)
117117
},
118118
)
@@ -145,15 +145,12 @@ fun SettingsGroupDebug() {
145145
SettingsMenuLink(
146146
title = { Text(text = "View Logcats") },
147147
subtitle = {
148-
val subtitle by remember {
149-
val text = if (latestCrashFile != null) {
150-
"Shows the most recent crash log"
151-
} else {
152-
"No recent crash logs found"
153-
}
154-
mutableStateOf(text)
148+
val text = if (latestCrashFile != null) {
149+
"Shows the most recent crash log"
150+
} else {
151+
"No recent crash logs found"
155152
}
156-
Text(text = subtitle)
153+
Text(text = text)
157154
},
158155
enabled = latestCrashFile != null,
159156
onClick = { showLogcatDialog = true },

0 commit comments

Comments
 (0)