package Ġorg . ire ader . presentation Ċ Ċ import Ġdagger . h ilt . android . lifecycle . H ilt ViewModel Ċ import Ġorg . ire ader . core _ ui . preferences . App Preferences Ċ import Ġorg . ire ader . core _ ui . preferences . Ui Preferences Ċ import Ġorg . ire ader . core _ ui . view model . Base ViewModel Ċ import Ġjavax . inject . Inject Ċ Ċ @ H ilt ViewModel Ċ class ĠScreen Content ViewModel Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġui Preferences : ĠUi Preferences , ĊĠĠĠ Ġprivate Ġval Ġpreferences : ĠApp Preferences , Ċ ) Ġ: ĠBase ViewModel (){ ĊĊĠĠĠ Ġvar Ġshow Update Ġ= Ġui Preferences . show Updates In Button Bar (). as State () ĊĠĠĠ Ġvar Ġshow History Ġ= Ġui Preferences . show History In Button Bar (). as State () ĊĠĠĠ Ġvar Ġconfirm Exit Ġ= Ġui Preferences . confirm Exit (). as State () ĊĊĊ Ċ } Ċ