Added setting to make album detail visible

This commit is contained in:
cba 2025-10-18 01:00:00 +02:00
parent 079149c1d5
commit cb0874dca4
4 changed files with 19 additions and 0 deletions

View file

@ -220,6 +220,10 @@ public class AlbumPageFragment extends Fragment implements ClickCallback {
bind.albumDetailView.setVisibility(View.GONE);
}
});
if(Preferences.showAlbumDetail()){
bind.albumDetailView.setVisibility(View.VISIBLE);
}
}
private void initAlbumInfoTextButton() {

View file

@ -76,6 +76,7 @@ object Preferences {
private const val EQUALIZER_ENABLED = "equalizer_enabled"
private const val EQUALIZER_BAND_LEVELS = "equalizer_band_levels"
private const val MINI_SHUFFLE_BUTTON_VISIBILITY = "mini_shuffle_button_visibility"
private const val ALBUM_DETAIL = "album_detail"
@JvmStatic
fun getServer(): String? {
@ -638,4 +639,9 @@ object Preferences {
if (parts.size < bandCount) return ShortArray(bandCount.toInt())
return ShortArray(bandCount.toInt()) { i -> parts[i].toShortOrNull() ?: 0 }
}
@JvmStatic
fun showAlbumDetail(): Boolean {
return App.getInstance().preferences.getBoolean(ALBUM_DETAIL, false)
}
}