package Ġcom . rus lan . hl ush an . core . ui . dialog Ċ Ċ import Ġandroid . graphics . drawable . Color Drawable Ċ import Ġandroidx . annotation . Color Int Ċ import Ġandroidx . fragment . app . Dialog Fragment Ċ import Ġcom . rus lan . hl ush an . core . thread . Ui MainThread Ċ import Ġcom . rus lan . hl ush an . core . ui . lifecycle . Lifecycle Plugin Observer Ċ import Ġjava . lang . ref . Weak Reference Ċ Ċ class ĠDialog BackgroundColor Lifecycle Plugin Observer ( ĊĠĠĠĠĠĠĠ Ġowner : ĠDialog Fragment , ĊĠĠĠĠĠĠĠ Ġ@ Color Int Ġprivate Ġval Ġcolor : ĠInt Ċ ) Ġ: ĠLifecycle Plugin Observer Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġowner Dialog Reference Ġ= ĠWeak Reference ( owner ) ĊĊĠĠĠ Ġ@ Ui MainThread ĊĠĠĠ Ġoverride Ġfun Ġon After Super Start () Ġ{ ĊĠĠĠĠĠĠĠ Ġowner Dialog Reference . get ()?. dialog ?. window ?. setBackground Drawable ( Color Drawable ( color )) ĊĠĠĠ Ġ} Ċ }