package Ġio . github . d roid ka igi . conf sched 2 0 1 9 . announcement . ui Ċ Ċ import Ġandroid . content . Context Ċ import Ġio . github . d roid ka igi . conf sched 2 0 1 9 . model . Lang Ċ import Ġio . github . d roid ka igi . conf sched 2 0 1 9 . model . default Lang Ċ import Ġio . github . d roid ka igi . conf sched 2 0 1 9 . notification . Topic Ċ import Ġio . github . d roid ka igi . conf sched 2 0 1 9 . notification . service . Manage Topic Subscription Intent Service Ċ Ċ fun ĠContext . subscribe Anno uncement Topic ( lang : ĠLang Ġ= Ġdefault Lang ()) Ġ{ ĊĠĠĠ Ġval Ġall Anno uncement Topics Ġ= ĠarrayOf ( Topic . Ja Anno uncement , ĠTopic . En Anno uncement ) ĊĊĠĠĠ Ġval Ġsubscribe Topic Ġ= Ġwhen Ġ( lang ) Ġ{ ĊĠĠĠĠĠĠĠ ĠLang . EN Ġ-> ĠTopic . En Anno uncement ĊĠĠĠĠĠĠĠ ĠLang . JA Ġ-> ĠTopic . Ja Anno uncement ĊĠĠĠ Ġ} ĊĊĠĠĠ ĠManage Topic Subscription Intent Service . start ( ĊĠĠĠĠĠĠĠ Ġthis , ĊĠĠĠĠĠĠĠ Ġsub scri bes Ġ= ĠlistOf ( subscribe Topic ), ĊĠĠĠĠĠĠĠ Ġun sub scri bes Ġ= Ġall Anno uncement Topics . filter Ġ{ Ġit Ġ!= Ġsubscribe Topic Ġ} ĊĠĠĠ Ġ) Ċ } Ċ