2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

[fenix] TabViewHolder: Remove unused parameter

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-04-23 20:49:35 +05:30 committed by Emily Kager
parent caae5e0bfb
commit 9a8fadfdbe
2 changed files with 2 additions and 3 deletions

View File

@ -83,8 +83,7 @@ class SessionControlAdapter(
override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) { override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) {
when (holder) { when (holder) {
is TabViewHolder -> holder.bindSession( is TabViewHolder -> holder.bindSession(
(items[position] as AdapterItem.TabItem).tab, (items[position] as AdapterItem.TabItem).tab
position
) )
} }
} }

View File

@ -85,7 +85,7 @@ class TabViewHolder(
} }
} }
fun bindSession(tab: Tab, position: Int) { fun bindSession(tab: Tab) {
this.tab = tab this.tab = tab
updateText(tab) updateText(tab)
updateSelected(tab.selected) updateSelected(tab.selected)