Skip to content

Commit

Permalink
hopefully work
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored May 5, 2024
1 parent 478b344 commit 0ae1597
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import org.citra.citra_emu.model.Game
import org.citra.citra_emu.utils.GameIconUtils
import org.citra.citra_emu.viewmodel.GamesViewModel

class GameAdapter(private val activity: AppCompatActivity) :
class GameAdapter(private val activity: AppCompatActivity), private val inflater: LayoutInflater) :
ListAdapter<Game, GameViewHolder>(AsyncDifferConfig.Builder(DiffCallback()).build()),
View.OnClickListener, View.OnLongClickListener {
private var lastClickTime = 0L
Expand Down Expand Up @@ -188,7 +188,7 @@ class GameAdapter(private val activity: AppCompatActivity) :
}

private fun showGameAboutDialog(context: Context, game: Game) {
val bottomSheetView = layoutInflater.inflate(R.layout.game_about_dialog, null)
val bottomSheetView = inflater.inflate(R.layout.game_about_dialog, null)

val bottomSheetDialog = BottomSheetDialog(context)
bottomSheetDialog.setContentView(bottomSheetView)
Expand Down

0 comments on commit 0ae1597

Please sign in to comment.