package Ġcom . flip per devices . file manager . impl . fragment Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . compose . runtime . Composable Ċ import Ġandroidx . compose . runtime . collect As State Ċ import Ġandroidx . compose . runtime . getValue Ċ import Ġandroidx . fragment . app . view Models Ċ import Ġcom . flip per devices . core . di . Component Holder Ċ import Ġcom . flip per devices . core . navigation . require Router Ċ import Ġcom . flip per devices . core . ui . Compose Fragment Ċ import Ġcom . flip per devices . file manager . api . navigation . FileManager Screen Provider Ċ import Ġcom . flip per devices . file manager . impl . comp osable . Composable FileManager With Dialog Ċ import Ġcom . flip per devices . file manager . impl . di . FileManager Component Ċ import Ġcom . flip per devices . file manager . impl . view models . FileManager ViewModel Ċ import Ġcom . flip per devices . file manager . impl . view models . FileManager ViewModel Factory Ċ import Ġcom . flip per devices . share . api . Share Api Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠFile Manager Fragment Ġ: ĠCompose Fragment () Ġ{ ĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġscreen Provider : ĠFile Manager Screen Provider ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġshare Api : ĠShare Api ĊĊĠĠĠ Ġprivate Ġval ĠviewModel Ġby Ġview Models < FileManager ViewModel > Ġ{ ĊĠĠĠĠĠĠĠ ĠFile Manager ViewModel Factory ( get Directory ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠComponent Holder . component < FileManager Component >(). inject ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Composable ĊĠĠĠ Ġoverride Ġfun ĠRender View () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġfile Manager State Ġby ĠviewModel . getFile Manager State (). collect As State () ĊĊĠĠĠĠĠĠĠ ĠComp osable FileManager With Dialog ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfile Manager State , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġshare Api ĊĠĠĠĠĠĠĠ Ġ) Ġ{ Ġfile Item Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrequire Router (). navigate To ( screen Provider . file Manager ( file Item . path )) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠEX TRA _ DIRECTORY _ KEY Ġ= Ġ" directory " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġget Directory (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġarguments ?. get ( EXTRA _ DIRECTORY _ KEY ) Ġas ĠString ĊĠĠĠ Ġ} Ċ } Ċ