mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
clean: code cleanup
This commit is contained in:
parent
f9573b3eab
commit
aed52fdbf8
2 changed files with 1 additions and 16 deletions
|
|
@ -114,12 +114,10 @@ public class PodcastChannelPageFragment extends Fragment implements ClickCallbac
|
||||||
if (channels == null) {
|
if (channels == null) {
|
||||||
if (bind != null) {
|
if (bind != null) {
|
||||||
bind.podcastEpisodesRecyclerView.setVisibility(View.GONE);
|
bind.podcastEpisodesRecyclerView.setVisibility(View.GONE);
|
||||||
bind.podcastEpisodesAvailabilityTextView.setVisibility(View.VISIBLE);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (bind != null) {
|
if (bind != null) {
|
||||||
bind.podcastEpisodesRecyclerView.setVisibility(View.VISIBLE);
|
bind.podcastEpisodesRecyclerView.setVisibility(View.VISIBLE);
|
||||||
bind.podcastEpisodesAvailabilityTextView.setVisibility(View.GONE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!channels.isEmpty() && channels.get(0) != null && channels.get(0).getEpisodes() != null) {
|
if (!channels.isEmpty() && channels.get(0) != null && channels.get(0).getEpisodes() != null) {
|
||||||
|
|
@ -127,8 +125,6 @@ public class PodcastChannelPageFragment extends Fragment implements ClickCallbac
|
||||||
|
|
||||||
if (bind != null && availableEpisode != null) {
|
if (bind != null && availableEpisode != null) {
|
||||||
bind.podcastEpisodesRecyclerView.setVisibility(availableEpisode.isEmpty() ? View.GONE : View.VISIBLE);
|
bind.podcastEpisodesRecyclerView.setVisibility(availableEpisode.isEmpty() ? View.GONE : View.VISIBLE);
|
||||||
bind.podcastEpisodesAvailabilityTextView.setVisibility(availableEpisode.isEmpty() ? View.VISIBLE : View.GONE);
|
|
||||||
|
|
||||||
podcastEpisodeAdapter.setItems(availableEpisode);
|
podcastEpisodeAdapter.setItems(availableEpisode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -99,21 +99,10 @@
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/podcast_episodes_recycler_view"
|
android:id="@+id/podcast_episodes_recycler_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:paddingBottom="@dimen/global_padding_bottom"
|
android:paddingBottom="@dimen/global_padding_bottom"
|
||||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/podcast_episodes_availability_text_view"
|
|
||||||
style="@style/TitleMedium"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingStart="16dp"
|
|
||||||
android:paddingTop="8dp"
|
|
||||||
android:paddingEnd="8dp"
|
|
||||||
android:text="@string/podcast_channel_page_title_no_episode_available"
|
|
||||||
android:visibility="gone" />
|
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue