https://kotlinlang.org logo
g

Gavin Ray

03/11/2020, 5:01 PM
I pass a hardcoded
position
for the fragment here because I can't figure out how to share the selected GameFragment position -> DetailsFragment yet, but this doesn't work. It blows up the app, on this line:
val dialog = Dialog(context)
Saying something about a type mismatch, which I can only assume is because I create a new GamesFragment with
GamesFragment.newInstance()
. How the hell is this so difficult, what am I doing wrong?