From 982abe8cdb4518da82e473daf473239574c0d37f Mon Sep 17 00:00:00 2001 From: OxygenCobalt Date: Fri, 12 Aug 2022 16:00:30 -0600 Subject: [PATCH] strings: remove system ok/cancel names [#215] Auxio tried to leverage built-in android string attributes for Ok and Cancel while still completing them for other translations that were not supported by the OS. Turns out this was a terrible idea when I switched to Weblate, which has no knowledge of this trick and could lead to a misleading translation value. Remove it. Resolves #215. --- CHANGELOG.md | 4 ++++ app/src/main/java/org/oxycblt/auxio/MainFragment.kt | 7 ++++++- app/src/main/res/layout/item_album_song.xml | 4 ++-- app/src/main/res/layout/item_parent.xml | 6 +++--- app/src/main/res/layout/item_queue_song.xml | 4 ++-- app/src/main/res/layout/item_song.xml | 6 +++--- app/src/main/res/layout/item_sort_header.xml | 6 ++++-- app/src/main/res/values-es/strings.xml | 4 ++-- app/src/main/res/values-in/strings.xml | 4 ++-- app/src/main/res/values-lt/strings.xml | 4 ++-- app/src/main/res/values-nl/strings.xml | 4 ++-- app/src/main/res/values-ru/strings.xml | 4 ++-- app/src/main/res/values-tr/strings.xml | 4 ++-- app/src/main/res/values/strings.xml | 6 ++---- app/src/main/res/values/styles_ui.xml | 12 ++++++------ 15 files changed, 44 insertions(+), 35 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d093d9b3..5afebd8f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - Playback bar now has a marquee effect - Added a way to access the system equalizer from the playback menu. +#### What's Fixed +- Fixed "@android:string/" strings from appearing in dialog +buttons + #### What's Changed - Menus are now opened using a new button to the side of all items - ReplayGain can now no longer be disabled. Remove ReplayGain tags from diff --git a/app/src/main/java/org/oxycblt/auxio/MainFragment.kt b/app/src/main/java/org/oxycblt/auxio/MainFragment.kt index 4ecc42f99..c956ee145 100644 --- a/app/src/main/java/org/oxycblt/auxio/MainFragment.kt +++ b/app/src/main/java/org/oxycblt/auxio/MainFragment.kt @@ -179,7 +179,6 @@ class MainFragment : // No queue sheet, fade normally based on the playback sheet binding.playbackBarFragment.alpha = 1 - halfOutRatio binding.playbackPanelFragment.alpha = halfInPlaybackRatio - binding.queueSheet.alpha = halfInPlaybackRatio } binding.exploreNavHost.apply { @@ -196,6 +195,12 @@ class MainFragment : } binding.playbackPanelFragment.isInvisible = binding.playbackPanelFragment.alpha == 0f + + binding.queueSheet.apply { + alpha = halfInPlaybackRatio + binding.queueSheet.isInvisible = alpha == 0f + } + binding.queueFragment.isInvisible = binding.queueFragment.alpha == 0f if (playbackModel.song.value == null) { diff --git a/app/src/main/res/layout/item_album_song.xml b/app/src/main/res/layout/item_album_song.xml index 6326ab911..2058e77e9 100644 --- a/app/src/main/res/layout/item_album_song.xml +++ b/app/src/main/res/layout/item_album_song.xml @@ -8,7 +8,7 @@ android:background="?attr/selectableItemBackground" android:paddingTop="@dimen/spacing_medium" android:paddingBottom="@dimen/spacing_medium" - android:paddingEnd="@dimen/spacing_small" + android:paddingEnd="@dimen/spacing_mid_medium" android:paddingStart="@dimen/spacing_medium"> Shuffle all - - @android:string/ok - - @android:string/cancel + OK + Cancel Add diff --git a/app/src/main/res/values/styles_ui.xml b/app/src/main/res/values/styles_ui.xml index a14e6d6ee..f47faa020 100644 --- a/app/src/main/res/values/styles_ui.xml +++ b/app/src/main/res/values/styles_ui.xml @@ -213,16 +213,16 @@