news: remove settings explanatory note
- Commit
c398e5135040fa0ad14c3c1d8566e017752a57d5- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-02 02:39 UTC (4 days ago)
- Parents
968f3f7
Remove the descriptive text block from the News Settings page.
The Settings screen showed an explanatory note ("Reader text options are in the reader.", strings.settings_note) telling the user where other options live instead of offering a control. The owner asked for that blurb to go: feed order is chosen on the feed and reader text options in the reader, so the note added no actionable setting.
Remove the Text composable rendering R.string.settings_note from SettingsContent, drop the now-unused settings_note string from values/strings.xml (the only locale file; no other locale defines it), drop the now-unused dp import, and shorten the SettingsScreen KDoc to describe only the remaining Local news location preference. The Local news location ListItem setting itself is unchanged and keeps navigating to Route.LocalLocation.
No test pinned the removed text (SettingsScreenTest asserts the Settings title, the Local news location row and its click navigation), so no test change was needed; the screenshot fixture renders SettingsContent unchanged in signature.
Verified in this worktree: ./gradlew :news:lint :news:lintVitalRelease :news:testDevUnitTest -- BUILD SUCCESSFUL (lintVitalAnalyzeRelease executed; lint and testDevUnitTest green; pre-existing !! and createComposeRule deprecation warnings untouched).Diff
news/src/main/java/com/vayunmathur/news/ui/SettingsScreen.kt
diff --git a/news/src/main/java/com/vayunmathur/news/ui/SettingsScreen.kt b/news/src/main/java/com/vayunmathur/news/ui/SettingsScreen.ktindex ec22fe9a96..ac27eea0ad 100644--- a/news/src/main/java/com/vayunmathur/news/ui/SettingsScreen.kt+++ b/news/src/main/java/com/vayunmathur/news/ui/SettingsScreen.kt@@ -9,7 +9,6 @@ import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource-import androidx.compose.ui.unit.dp import com.vayunmathur.library.ui.AppScaffold import com.vayunmathur.library.ui.DesktopMaxWidthContainer import com.vayunmathur.library.ui.ListItem@@ -18,11 +17,9 @@ import com.vayunmathur.news.R import com.vayunmathur.news.platform.NewsViewModel /**- * News settings: holds the Local news location preference (reader- * options are in the reader). Picking a location is navigation- * ([com.vayunmathur.news.Route.LocalLocation]), not local screen state.- * There is no feed-order setting: the feed has one ordering (see- * [com.vayunmathur.news.domain.FeedRanking]).+ * News settings. Holds the Local news location preference. Picking a+ * location is navigation ([com.vayunmathur.news.Route.LocalLocation]),+ * not local screen state. */ @Composable fun SettingsScreen(@@ -62,10 +59,6 @@ internal fun SettingsContent( }, modifier = Modifier.clickable { onOpenLocalLocation() }, )- Text(- stringResource(R.string.settings_note),- modifier = Modifier.padding(16.dp),- ) } } }
news/src/main/res/values/strings.xml
diff --git a/news/src/main/res/values/strings.xml b/news/src/main/res/values/strings.xmlindex 80292369f0..b661bb0050 100644--- a/news/src/main/res/values/strings.xml+++ b/news/src/main/res/values/strings.xml@@ -18,7 +18,6 @@ <string name="feed_local_empty">No downloaded news from %1$s yet. Pull to refresh, or pick a wider place (for example your state or region) in Settings.</string> <!-- SettingsScreen --> <string name="settings_title">Settings</string>- <string name="settings_note">Reader text options are in the reader.</string> <!-- LocalLocationScreen / SettingsScreen setting --> <string name="local_location_title">Local news location</string> <string name="local_location_note">Choose where Local news comes from. Local shows only sources from that place; other places are not mixed in. This is only a preference — the app never uses your device location.</string>