package Ġio . github . z wi eb ack . family finance . business . operation . activity Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġio . github . z wi eb ack . family finance . R Ċ import Ġio . github . z wi eb ack . family finance . business . operation . activity . helper . Income Operation Helper Ċ import Ġio . github . z wi eb ack . family finance . business . operation . dialog . Income Operation Filter Dialog Ċ import Ġio . github . z wi eb ack . family finance . business . operation . filter . Income Operation Filter Ċ import Ġio . github . z wi eb ack . family finance . business . operation . filter . Income Operation Filter . Companion . IN CO ME _ OPERATION _ FILTER Ċ import Ġio . github . z wi eb ack . family finance . business . operation . fragment . Income Operation Fragment Ċ import Ġio . github . z wi eb ack . family finance . core . lifecycle . destroy er . Entity Destroy er Ċ import Ġio . github . z wi eb ack . family finance . core . model . Operation Ċ import Ġio . github . z wi eb ack . family finance . core . model . Operation View Ċ import Ġio . github . z wi eb ack . family finance . extension . operation . filter . apply Preferences Ċ Ċ class ĠIn come Operation Activity Ġ: ĊĠĠĠ ĠOperation Activity < Income Operation Fragment , ĠIn come Operation Filter >() Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġoperation Helper : ĠIn come Operation Helper ĊĊĠĠĠ Ġoverride Ġval Ġtitle String Id : ĠInt ĊĠĠĠĠĠĠĠ Ġget () Ġ= ĠR . string . income _ operation _ activity _ title ĊĊĠĠĠ Ġoverride Ġval Ġfilter Name : ĠString ĊĠĠĠĠĠĠĠ Ġget () Ġ= ĠIN CO ME _ OPERATION _ FILTER ĊĊĠĠĠ Ġoverride Ġfun Ġinit ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . init ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġoperation Helper Ġ= ĠIn come Operation Helper ( this , Ġdata ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Default Filter () Ġ= ĠIn come Operation Filter (). apply Ġ{ ĊĠĠĠĠĠĠĠ Ġapply Preferences ( this @ Income Operation Activity ) ĊĠĠĠĠĠĠĠ Ġput Article Id ( database Prefs . income s Article Id ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Fragment (): ĠIn come Operation Fragment Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠIn come Operation Fragment . newInstance ( filter ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġadd Entity () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . add Entity () ĊĠĠĠĠĠĠĠ Ġval Ġintent Ġ= Ġoperation Helper . get Intent ToAdd ( filter ) ĊĠĠĠĠĠĠĠ ĠstartActivity ( intent ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Suppress (" PARAMETER _ NAME _ CHANGED _ ON _ OVERRIDE ") ĊĠĠĠ Ġoverride Ġfun Ġedit Entity ( operation : ĠOperation View ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . edit Entity ( operation ) ĊĠĠĠĠĠĠĠ Ġval Ġintent Ġ= Ġoperation Helper . get Intent To Edit ( operation ) ĊĠĠĠĠĠĠĠ ĠstartActivity ( intent ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Suppress (" PARAMETER _ NAME _ CHANGED _ ON _ OVERRIDE ") ĊĠĠĠ Ġoverride Ġfun Ġduplicate Entity ( operation : ĠOperation View ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . duplicate Entity ( operation ) ĊĠĠĠĠĠĠĠ Ġval Ġintent Ġ= Ġoperation Helper . get Intent To Duplicate ( operation ) ĊĠĠĠĠĠĠĠ ĠstartActivity ( intent ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Suppress (" PARAMETER _ NAME _ CHANGED _ ON _ OVERRIDE ") ĊĠĠĠ Ġoverride Ġfun Ġcreate Destroy er ( operation : ĠOperation View ): ĠEntity Destroy er < Operation > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġoperation Helper . create Destroy er ( operation ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġshow Filter Dialog () Ġ{ ĊĠĠĠĠĠĠĠ ĠIn come Operation Filter Dialog ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. newInstance ( filter ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. show ( support FragmentManager , Ġ" Income Operation Filter Dialog ") ĊĠĠĠ Ġ} Ċ } Ċ