package Ġcom . j ok ub as . m mdb . movie grid . ui . grid Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġcom . j ok ub as . m mdb . movie grid . actions . Movie Grid Fragment Action Ċ Ċ class ĠMovie Grid ViewModel Factory ( ĊĠĠĠ Ġprivate Ġval Ġaction : ĠMovie Grid Fragment Action , ĊĠĠĠ Ġprivate Ġval Ġconfig : ĠMovie Grid Fragment Config Ċ ) Ġ: ĠViewModel Provider . Factory Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel ?> Ġcreate ( model Class : ĠClass < T >): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġ@ Suppress (" UN CHECK ED _ CAST ") ĊĠĠĠĠĠĠĠ Ġreturn ĠMovie Grid ViewModel ( action , Ġconfig ) Ġas ĠT ĊĠĠĠ Ġ} Ċ }