Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo 'Launch' to 'Lunch' #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import com.macoscope.ketchuplunch.model.lunch.Meal
import com.timehop.stickyheadersrecyclerview.StickyRecyclerHeadersAdapter
import org.jetbrains.anko.AnkoContext

class LunchMenuAdapter(var mealList: List<Meal>) : RecyclerView.Adapter<LaunchMenuItemViewHolder>(),
class LunchMenuAdapter(var mealList: List<Meal>) : RecyclerView.Adapter<LunchMenuItemViewHolder>(),
StickyRecyclerHeadersAdapter<LunchHeaderViewHolder> {

override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int): LaunchMenuItemViewHolder? =
LaunchMenuItemViewHolder(LunchMenuItemUI().createView(AnkoContext.create(parent!!.context, parent)))
override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int): LunchMenuItemViewHolder? =
LunchMenuItemViewHolder(LunchMenuItemUI().createView(AnkoContext.create(parent!!.context, parent)))

override fun onBindViewHolder(holder: LaunchMenuItemViewHolder?, position: Int) {
override fun onBindViewHolder(holder: LunchMenuItemViewHolder?, position: Int) {
holder!!.bind(mealList[position])
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.macoscope.ketchuplunch.R
import com.macoscope.ketchuplunch.model.lunch.Meal
import org.jetbrains.anko.find

class LaunchMenuItemViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
class LunchMenuItemViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
val name: TextView = itemView.find(R.id.lunch_menu_name)
val count: TextView = itemView.find(R.id.lunch_menu_count)

Expand Down