Skip to content

Commit

Permalink
Movies: rename item_discover_movie.xml to item_movie.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed Mar 14, 2024
1 parent 75cfde3 commit e29a48c
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2023 Uwe Trottmann
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2024 Uwe Trottmann

package com.battlelancer.seriesguide.movies

Expand All @@ -9,15 +9,15 @@ import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.battlelancer.seriesguide.R
import com.battlelancer.seriesguide.databinding.ItemDiscoverMovieBinding
import com.battlelancer.seriesguide.databinding.ItemMovieBinding
import com.battlelancer.seriesguide.movies.database.SgMovie
import com.battlelancer.seriesguide.util.ImageTools
import com.squareup.picasso.Picasso
import com.uwetrottmann.tmdb2.entities.BaseMovie
import java.text.DateFormat

class MovieViewHolder(
val binding: ItemDiscoverMovieBinding,
val binding: ItemMovieBinding,
itemClickListener: MovieClickListener?
) : RecyclerView.ViewHolder(binding.root) {

Expand Down Expand Up @@ -107,7 +107,7 @@ class MovieViewHolder(
@JvmStatic
fun inflate(parent: ViewGroup, itemClickListener: MovieClickListener?): MovieViewHolder {
return MovieViewHolder(
ItemDiscoverMovieBinding.inflate(
ItemMovieBinding.inflate(
LayoutInflater.from(parent.context), parent, false
),
itemClickListener
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import org.greenrobot.eventbus.ThreadMode
*/
abstract class MoviesBaseFragment : Fragment() {

private lateinit var adapter: MoviesWatchedAdapter
private lateinit var adapter: MoviesAdapter

abstract val model: MoviesWatchedViewModel

Expand All @@ -51,7 +51,7 @@ abstract class MoviesBaseFragment : Fragment() {

emptyView.setText(emptyViewTextResId)

adapter = MoviesWatchedAdapter(requireContext(), MovieClickListenerImpl(requireContext()))
adapter = MoviesAdapter(requireContext(), MovieClickListenerImpl(requireContext()))

recyclerView.also {
it.setHasFixedSize(true)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2023 Uwe Trottmann
// SPDX-License-Identifier: Apache-2.0
// Copyright 2017-2024 Uwe Trottmann

package com.battlelancer.seriesguide.movies;

Expand All @@ -24,7 +24,7 @@ public class MoviesDiscoverAdapter extends RecyclerView.Adapter<RecyclerView.Vie

static final int VIEW_TYPE_LINK = R.layout.item_discover_link;
static final int VIEW_TYPE_HEADER = R.layout.item_discover_header;
static final int VIEW_TYPE_MOVIE = R.layout.item_discover_movie;
static final int VIEW_TYPE_MOVIE = R.layout.item_movie;

interface ItemClickListener extends MovieClickListener {
void onClickLink(MoviesDiscoverLink link, View anchor);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_movies_collection.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
android:paddingTop="@dimen/grid_item_margin_vertical"
android:paddingRight="@dimen/grid_item_margin_horizontal"
android:paddingBottom="@dimen/grid_item_margin_vertical"
tools:listitem="@layout/item_discover_movie" />
tools:listitem="@layout/item_movie" />

</FrameLayout>
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_movies_discover.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
android:paddingLeft="@dimen/grid_item_margin_horizontal"
android:paddingRight="@dimen/grid_item_margin_horizontal"
android:paddingTop="@dimen/grid_item_margin_vertical"
tools:listitem="@layout/item_discover_movie" />
tools:listitem="@layout/item_movie" />

</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_movies_search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
android:paddingTop="@dimen/grid_item_margin_vertical"
android:paddingRight="@dimen/grid_item_margin_horizontal"
android:paddingBottom="40dp"
tools:listitem="@layout/item_discover_movie" />
tools:listitem="@layout/item_movie" />

<TextView
android:id="@+id/textViewPoweredByMoviesSearch"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_movies_watched.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
android:paddingTop="@dimen/grid_item_margin_vertical"
android:paddingRight="@dimen/grid_item_margin_horizontal"
android:paddingBottom="@dimen/grid_item_margin_vertical"
tools:listitem="@layout/item_discover_movie" />
tools:listitem="@layout/item_movie" />

</FrameLayout>
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_movies_watchlist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
android:paddingTop="@dimen/grid_item_margin_vertical"
android:paddingRight="@dimen/grid_item_margin_horizontal"
android:paddingBottom="@dimen/grid_item_margin_vertical"
tools:listitem="@layout/item_discover_movie" />
tools:listitem="@layout/item_movie" />

</FrameLayout>
File renamed without changes.
2 changes: 1 addition & 1 deletion app/src/main/res/layout/layout_movie.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:showIn="@layout/item_discover_movie">
tools:showIn="@layout/item_movie">

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/containerMoviePoster"
Expand Down

0 comments on commit e29a48c

Please sign in to comment.