/* Ċ Copyright Ġ 2 0 2 0 ĠMat he us ĠM ene zes Ċ Ċ Licensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ you Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ You Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat ĊĊĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ċ Unless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ distributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ WITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ See Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ limitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġcom . math sem ilio . hir ag an ale arner . ui . common . navigation Ċ Ċ import Ġcom . math sem ilio . hir ag an ale arner . ui . screens . main . Game Main Fragment Ċ import Ġcom . math sem ilio . hir ag an ale arner . ui . screens . result . Game Result Fragment Ċ import Ġcom . math sem ilio . hir ag an ale arner . ui . screens . settings . Settings Fragment Ċ import Ġcom . math sem ilio . hir ag an ale arner . ui . screens . welcome . Game Welcome Fragment Ċ Ċ class ĠS cre ens Navigator ( private Ġval Ġfragment Transaction Manager : ĠFragment Transaction Manager ) Ġ{ ĊĊĠĠĠ Ġfun Ġto Settings Screen () Ġ{ ĊĠĠĠĠĠĠĠ Ġfragment Transaction Manager . push Fragment On to Container ( Settings Fragment . newInstance (), Ġnull ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġto Welcome Screen () Ġ{ ĊĠĠĠĠĠĠĠ Ġfragment Transaction Manager . replace Fragment On Container With ( Game Welcome Fragment . newInstance ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġto Main Screen ( difficulty Value : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġfragment Transaction Manager . replace Fragment On Container With ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠGame Main Fragment . with Difficulty Value ( difficulty Value ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġto Result Screen ( difficulty Value : ĠInt , Ġscore : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġfragment Transaction Manager . replace Fragment On Container With ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠGame Result Fragment . with Game Result ( difficulty Value , Ġscore ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġnavigate Up () Ġ{ ĊĠĠĠĠĠĠĠ Ġfragment Transaction Manager . pop Current Fragment From Container () ĊĠĠĠ Ġ} Ċ }