Twelve: String improvements
Change-Id: I3fa0b7721035646df2c8dcd81d61f936e66504c3
diff --git a/app/src/main/java/org/lineageos/twelve/fragments/NowPlayingStatsDialogFragment.kt b/app/src/main/java/org/lineageos/twelve/fragments/NowPlayingStatsDialogFragment.kt
index 0a38685..928907a 100644
--- a/app/src/main/java/org/lineageos/twelve/fragments/NowPlayingStatsDialogFragment.kt
+++ b/app/src/main/java/org/lineageos/twelve/fragments/NowPlayingStatsDialogFragment.kt
@@ -96,9 +96,9 @@
viewModel.transcodingFloatModeEnabled.collectLatest {
transcodingFloatModeEnabledListItem.setSupportingText(
when (it) {
- true -> R.string.audio_float_mode_enabled_true
- false -> R.string.audio_float_mode_enabled_false
- null -> R.string.audio_float_mode_enabled_unknown
+ true -> R.string.audio_float_mode_enabled
+ false -> R.string.audio_float_mode_disabled
+ null -> R.string.audio_float_mode_unknown
}
)
}
diff --git a/app/src/main/res/layout/fragment_now_playing_stats_dialog.xml b/app/src/main/res/layout/fragment_now_playing_stats_dialog.xml
index d25d80e..6d1572a 100644
--- a/app/src/main/res/layout/fragment_now_playing_stats_dialog.xml
+++ b/app/src/main/res/layout/fragment_now_playing_stats_dialog.xml
@@ -59,8 +59,8 @@
android:id="@+id/transcodingFloatModeEnabledListItem"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- app:headlineText="@string/audio_float_mode_enabled"
- app:supportingText="@string/audio_float_mode_enabled_unknown" />
+ app:headlineText="@string/audio_float_mode"
+ app:supportingText="@string/audio_float_mode_unknown" />
<org.lineageos.twelve.ui.views.ListItem
android:id="@+id/transcodingEncodingListItem"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 94584a7..eebb486 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -94,10 +94,10 @@
<string name="audio_channel_count_unknown">Unknown</string>
<string name="audio_encoding">Encoding</string>
<string name="audio_encoding_unknown">Unknown</string>
- <string name="audio_float_mode_enabled">PCM float mode enabled</string>
- <string name="audio_float_mode_enabled_unknown">Unknown</string>
- <string name="audio_float_mode_enabled_true">True</string>
- <string name="audio_float_mode_enabled_false">False</string>
+ <string name="audio_float_mode">PCM float mode</string>
+ <string name="audio_float_mode_unknown">Unknown</string>
+ <string name="audio_float_mode_enabled">Enabled</string>
+ <string name="audio_float_mode_disabled">Disabled</string>
<string name="audio_output_mode">Output mode</string>
<string name="audio_output_mode_unknown">Unknown</string>
<string name="audio_output_mode_pcm">PCM</string>