package Ġcom . k ok oc in ski . id let imer . al arms Ċ Ċ import Ġandroid . app . Pending Intent Ċ import Ġandroid . app . Task Stack Builder Ċ import Ġandroid . content . Intent Ċ import Ġandroid . support . v 4 . app . Notification Compat Ċ import Ġcom . ever note . android . job . Job Ċ import Ġcom . k ok oc in ski . data . jobs . CHANNEL _ TIM ERS Ċ import Ġcom . k ok oc in ski . data . jobs . EXTRA _ MESSAGE Ċ import Ġcom . k ok oc in ski . data . jobs . EXTRA _ TITLE Ċ import Ġcom . k ok oc in ski . id let imer . R Ċ import Ġcom . k ok oc in ski . timer list . Timer List Activity Ċ import Ġcom . k ok oc in ski . toolkit . android Extensions . notification Manager ĊĊ Ċ class ĠTimer Job Ġ: ĠJob () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġon Run Job ( params : ĠParams ): ĠResult Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtitle Ġ= Ġparams . extras . getString ( EXTRA _ TITLE , Ġ"") ĊĠĠĠĠĠĠĠ Ġval Ġmessage Ġ= Ġparams . extras . getString ( EXTRA _ MESSAGE , Ġ"") ĊĊĠĠĠĠĠĠĠ Ġval Ġnotification Ġ= ĠNotification Compat . Builder ( context , ĠCHAN NEL _ TIM ERS ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Small Icon ( R . drawable . notification _ icon ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. setContent Title ( title ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. setContent Text ( message ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. setContent Intent ( create Result Intent ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. setAuto Cancel ( true ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠĠĠĠĠ Ġcontext . notification Manager . notify ( title . hashCode (), Ġnotification ) ĊĊĠĠĠĠĠĠĠ Ġreturn ĠResult . SUCCESS ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġcreate Result Intent (): ĠPending Intent ? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresult Intent Ġ= ĠIntent ( context , ĠTimer List Activity :: class . java ) ĊĠĠĠĠĠĠĠ Ġresult Intent . flags Ġ= ĠIntent . FLAG _ ACTIVITY _ CLEAR _ TOP ĊĊĠĠĠĠĠĠĠ Ġval Ġstack Builder Ġ= ĠTask Stack Builder . create ( context ) ĊĠĠĠĠĠĠĠ Ġstack Builder . add Parent Stack ( Timer List Activity :: class . java ) ĊĠĠĠĠĠĠĠ Ġstack Builder . add Next Intent ( result Intent ) ĊĊĠĠĠĠĠĠĠ Ġval Ġresult Pending Intent Ġ= Ġstack Builder . get Pending Intent ( 0 , ĠPending Intent . FLAG _ UPDATE _ CURRENT ) ĊĠĠĠĠĠĠĠ Ġreturn Ġresult Pending Intent ĊĠĠĠ Ġ} Ċ }