package Ġio . dw ak . tech test Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . v 7 . app . AppCompatActivity Ċ import Ġandroid . widget . Frame Layout Ċ import Ġbutter knife . BindView Ċ import Ġcom . blue lin el abs . cond uctor . Con duct or Ċ import Ġcom . blue lin el abs . cond uctor . Router Ċ Ċ class ĠMainActivity Ġ: ĠAppCompatActivity () Ġ{ ĊĠ Ġprivate Ġlateinit Ġvar Ġrouter : ĠRouter ĊĠ Ġ@ BindView ( R . id . container ) Ġlateinit Ġvar Ġcontainer : ĠFrame Layout ĊĊĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠ ĠsetContentView ( R . layout . activity _ main ) ĊĠĠĠ Ġrouter Ġ= ĠConduct or . attach Router ( this , Ġcontainer , ĠsavedInstanceState ). also Ġ{ ĊĠĠĠĠĠ Ġif (! it . has Root Controller ()) Ġ{ ĊĠĠĠĠĠĠĠ Ġit . set Root ( Main Controller Builder (). as Transaction ()) ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon Back Pressed () Ġ{ ĊĠĠĠ Ġif (! router . handle Back ()) Ġ{ ĊĠĠĠĠĠ Ġsuper . on Back Pressed () ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ