package Ġcom . there al blue pand ab ear . pix ap encil . activities . canvas . on options item selected Ċ Ċ import Ġandroidx . fragment . app . commit Ċ import Ġcom . there al blue pand ab ear . pix ap encil . R Ċ import Ġcom . there al blue pand ab ear . pix ap encil . activities . canvas . Canvas Activity Ċ import Ġcom . there al blue pand ab ear . pix ap encil . fragments . new color palette . New Color Palette Fragment Ċ Ċ fun ĠCanvas Activity . on New Color Palette Options ItemSelected () Ġ{ ĊĠĠĠ Ġsupport FragmentManager . commit Ġ{ ĊĠĠĠĠĠĠĠ Ġreplace ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . activity Canvas _ primary Fragment Host , Ġ ĠNew Color Palette Fragment . newInstance ()) ĊĠĠĠĠĠĠĠ ĠaddTo Back Stack ( null ) ĊĠĠĠ Ġ} Ċ }