package Ġcom . remember . common . bottom sheet Ċ Ċ import Ġandroid . app . Dialog Ċ import Ġandroid . graphics . Color Ċ import Ġandroid . graphics . drawable . Color Drawable Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . annotation . Layout Res Ċ import Ġandroidx . fragment . app . Dialog Fragment Ċ import Ġcom . google . android . material . bottom sheet . Bottom Sheet Dialog Fragment Ċ import Ġcom . remember . common . R Ċ Ċ open Ġclass ĠRo unded Bottom Sheet Dialog Fragment ( ĊĠĠĠ Ġ@ Layout Res Ġprivate Ġval Ġlayout Res : ĠInt , ĊĠĠĠ Ġprotected Ġval Ġcan Dismiss : ĠBoolean Ġ= Ġfalse Ċ ) Ġ: ĠBottom Sheet Dialog Fragment () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġset Style ( Dialog Fragment . STYLE _ NORMAL , ĠR . style . Remember _ Action Sheet _ Rounded ) ĊĠĠĠĠĠĠĠ Ġdialog ?. window ?. setBackground Drawable ( Color Drawable ( Color . TRANSP ARENT )) ĊĠĠĠĠĠĠĠ Ġdialog ?. set Canceled On Touch Outside ( can Dismiss ) ĊĠĠĠĠĠĠĠ Ġdialog ?. set Cancel able ( can Dismiss ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġsetup Dialog ( dialog : ĠDialog , Ġstyle : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . setup Dialog ( dialog , Ġstyle ) ĊĠĠĠĠĠĠĠ Ġdialog . set Canceled On Touch Outside ( can Dismiss ) ĊĠĠĠĠĠĠĠ Ġdialog . set Cancel able ( can Dismiss ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , ĊĠĠĠĠĠĠĠ Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ): ĠView ? Ġ= Ġinflater . inflate ( layout Res , Ġcontainer , Ġfalse ) ĊĊĠĠĠ Ġoverride Ġfun Ġget Theme () Ġ= ĠR . style . Remember _ Action Sheet _ Rounded Ċ } Ċ