package Ġcom . p mm . demo . module . base . fragment . single Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġcom . p mm . demo . base . Base Fragment Activity Ċ Ċ class ĠSingle Fragment Activity () Ġ: ĠBase Fragment Activity () Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġfragment : ĠFragment Ġ= ĠTest Fragment . newInstance ( this ) ĊĊĠĠĠ Ġoverride Ġfun Ġafter View Attach ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . after View Attach ( savedInstanceState ) ĊĠĠĠ Ġ} Ċ } Ċ