package Ġcom . ray co ar ana . pl a ayer . car . media . view Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġcom . ray co ar ana . pl a ayer . R Ċ import Ġcom . ray co ar ana . pl a ayer . car . media . view model . Photo Viewer ViewModel Ċ import Ġcom . ray co ar ana . pl a ayer . core . di . D agger Car Fragment Ċ import Ġcom . ray co ar ana . pl a ayer . databinding . Car Fragment Photo Binding Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠPhoto Viewer Fragment Ġ: ĠD agger Car Fragment () Ġ{ ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar ĠviewModel : ĠPhoto Viewer ViewModel ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġbinding : ĠCar Fragment Photo Binding ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġinflater . inflate ( R . layout . car _ fragment _ photo , Ġcontainer , Ġfalse ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ ĠviewModel . initialize ( arguments ?. getString ( ARGS _ DATA _ URL ) Ġ?: Ġ"") ĊĊĠĠĠĠĠĠĠ Ġbinding Ġ= ĠCar Fragment Photo Binding . bind ( view ) ĊĠĠĠĠĠĠĠ Ġbinding . viewModel Ġ= ĠviewModel ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Component Ready () Ġ{ ĊĠĠĠĠĠĠĠ Ġcomponent . inject ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠARGS _ DATA _ URL Ġ= Ġ" data " ĊĠĠĠ Ġ} Ċ } Ċ