package Ġcom . nick . m ow en . we ar oss ms . presenter Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . content . Context Ċ import Ġandroid . view . View Ċ import Ġandroid . widget . ImageView Ċ import Ġandroid . widget . Toast Ċ import Ġandroidx . core . graphics . to Color Int Ċ import Ġandroidx . navigation . find Nav Controller Ċ import Ġcom . nick . m ow en . we ar oss ms . Constants Ċ import Ġcom . nick . m ow en . we ar oss ms . extension . getColor Ċ import Ġcom . nick . m ow en . we ar oss ms . extension . show Color Picker Ċ import Ġcom . nick . m ow en . we ar oss ms . extension . to Hex Ċ import Ġcom . nick . m ow en . we ar oss ms . fragment . Demo Inbox Fragment Directions Ċ Ċ class ĠCon versation Presenter Ġ{ ĊĊĠĠĠ Ġfun Ġconversation Clicked ( view : ĠView , Ġthread Id : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġview . find Nav Controller (). run Ġ{ Ġnavigate ( Demo Inbox Fragment Directions . action Demo Inbox Fragment To Demo Conversation Fragment ( thread Id )) Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcolor Clicked ( view : ĠImageView , Ġname : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpreferences Ġ= Ġview . context . get SharedPreferences ( Constants . COLOR _ PREFER ENCES , ĠContext . MODE _ PRIVATE ) ĊĠĠĠĠĠĠĠ Ġ( view . context Ġas ĠActivity ). show Color Picker ( name . getColor ( view . context , Ġpreferences ). to Hex ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġpreferences . edit (). put Int ( name , Ġit . to Color Int ()). apply () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠToast . makeText ( view . context , Ġ" Updated ĠColor ", ĠToast . LENGTH _ SHORT ). show () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }