refactor: music discovery section

This commit is contained in:
antonio 2023-05-06 19:30:45 +02:00
parent 9f5e0a0e00
commit 7e6a67e28d
3 changed files with 6 additions and 6 deletions

View file

@ -136,7 +136,7 @@ public class HomeTabMusicFragment extends Fragment implements ClickCallback {
}
private void init() {
bind.musicDiscoveryTextViewRefreshable.setOnLongClickListener(v -> {
bind.discoveryTextViewRefreshable.setOnLongClickListener(v -> {
homeViewModel.refreshDiscoverySongSample(getViewLifecycleOwner());
return true;
});

View file

@ -21,7 +21,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="8dp"
android:layout_marginTop="16dp"
android:layout_marginBottom="24dp"
android:visibility="gone">
@ -114,15 +114,15 @@
android:orientation="vertical">
<TextView
android:id="@+id/music_discovery_text_view_refreshable"
android:id="@+id/discovery_text_view_refreshable"
style="@style/TitleLarge"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:paddingStart="16dp"
android:paddingTop="8dp"
android:paddingTop="16dp"
android:paddingEnd="16dp"
android:text="@string/home_title_music_discovery" />
android:text="@string/home_title_discovery" />
<!-- slideview -->
<androidx.viewpager2.widget.ViewPager2

View file

@ -69,7 +69,7 @@
<string name="home_title_made_for_you">Made for you</string>
<string name="home_title_most_played">Most played</string>
<string name="home_title_most_played_see_all_button">See all</string>
<string name="home_title_music_discovery">Music discovery</string>
<string name="home_title_discovery">Discovery</string>
<string name="home_title_recently_added">Recently added</string>
<string name="home_title_recently_added_see_all_button">See all</string>
<string name="home_title_starred_albums">★ Starred albums</string>