Ellen Spertus
02/23/2021, 8:01 PMvar args = GameWonFragmentArgs.fromBundle(requireArguments())
instead of:
var args = GameWonFragmentArgs.fromBundle(arguments!!)
I understand it eliminates the ugly !!
, but it still will likely lead to an error (IllegalStateException
rather than NullPointerException
). This was asked on Stack Overflow but not really answered. ScoreFragmentArgs.fromBundle(requireArguments())Luke
02/23/2021, 8:02 PMIan Lake
02/23/2021, 9:15 PMEllen Spertus
02/24/2021, 1:14 AMIan Lake
02/24/2021, 3:04 AMEllen Spertus
02/24/2021, 3:13 AMEllen Spertus
02/25/2021, 1:04 AMIan Lake
02/25/2021, 1:11 AMEllen Spertus
02/27/2021, 12:39 AM