package Ġcom . ak in ci . gym ber compose . ui . main . util Ċ Ċ import Ġandroidx . compose . runtime . Composable Ċ import Ġandroidx . compose . runtime . remember Ċ import Ġandroidx . lifecycle . Lifecycle Ċ import Ġandroidx . navigation . Nav Back Stack Entry Ċ import Ġandroidx . navigation . Nav Host Controller Ċ import Ġandroidx . navigation . compose . remember Nav Controller Ċ import Ġcom . ak in ci . gym ber compose . ui . main . navigation . Navigation Ċ Ċ private Ġfun ĠNav Back Stack Entry . lifecycle Is Res umed () Ġ= Ġthis . lifecycle . currentState Ġ== ĠLifecycle . State . RE SU MED Ċ Ċ @ Composable Ċ fun Ġremember G ym ber AppState ( ĊĠĠĠ Ġnav Controller : ĠNav Host Controller Ġ= Ġremember Nav Controller () Ċ ) Ġ= Ġremember ( nav Controller ) Ġ{ ĊĠĠĠ ĠG ym ber AppState ( nav Controller ) Ċ } Ċ Ċ class ĠG ym ber AppState ( ĊĠĠĠ Ġval Ġnav Controller : ĠNav Host Controller Ċ ) Ġ{ ĊĠĠĠ Ġfun Ġnavigate Back () Ġ{ Ġnav Controller . pop Back Stack () Ġ} ĊĊĠĠĠ Ġfun Ġnavigate ( navigation Route : ĠNavigation , Ġargs : ĠMap < String , String >? Ġ= Ġnull , Ġfrom : ĠNav Back Stack Entry ){ ĊĠĠĠĠĠĠĠ Ġ// ĠIn Ġorder Ġto Ġdiscard Ġduplicated Ġnavigation Ġevents , Ġwe Ġcheck Ġthe ĠLifecycle ĊĠĠĠĠĠĠĠ Ġif Ġ( from . lifecycle Is Res umed ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġnav Controller . navigate ( navigation Route . create Route ( args )) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }