package Ġcom . rog ert alk . ro ger . ui . screens . talk Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ import Ġcom . rog ert alk . ro ger . ui . screens . Talk Activity Ċ Ċ object ĠTalk Activity Utils Ġ{ ĊĊĠĠĠ Ġval ĠEX TRA _ JUST _ ON BO AR DED Ġ= Ġ" just On bo arded " ĊĠĠĠ Ġval ĠUI _ REFRESH _ RATE _ M ILL IS : ĠLong Ġ= Ġ 1 0 0 0 0 ĊĠĠĠ Ġval ĠEX TRA _ RAN K ING _ VALUE Ġ= Ġ" ranking Value " ĊĠĠĠ Ġval ĠEX TRA _ PRE _ SELECT _ STREAM Ġ= Ġ" stream Id " ĊĠĠĠ Ġval ĠEX TRA _ C AME _ FROM _ NOTIFICATION Ġ= Ġ" came From Notification " ĊĊĠĠĠ Ġval ĠTIMER _ REFRESH _ UI Ġ= Ġ 1 ĊĠĠĠ Ġval ĠTIMER _ REFRESH _ STREAM S Ġ= Ġ 2 ĊĠĠĠ Ġval ĠMAX _ TITLE _ CHAR ACT ERS Ġ= Ġ 4 0 ĊĊĠĠĠ Ġfun Ġget Start Talk Screen ( context : ĠContext , Ġjust On Bo arded : ĠBoolean Ġ= Ġfalse ): ĠIntent Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġstart Intent Ġ= ĠIntent ( context , ĠTalk Activity :: class . java ) ĊĠĠĠĠĠĠĠ Ġstart Intent . putExtra ( EXTRA _ JUST _ ON BO AR DED , Ġjust On Bo arded ) ĊĠĠĠĠĠĠĠ Ġstart Intent . flags Ġ= ĠIntent . FLAG _ ACTIVITY _ NEW _ TASK ĊĠĠĠĠĠĠĠ Ġstart Intent . flags Ġ= ĠIntent . FLAG _ ACTIVITY _ CLEAR _ TOP ĊĠĠĠĠĠĠĠ Ġreturn Ġstart Intent ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġstart With Stream ( context : ĠContext , Ġstream Id : ĠLong , Ġcame From Notification : ĠBoolean Ġ= Ġfalse ): ĠIntent Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġstart Intent Ġ= ĠIntent ( context , ĠTalk Activity :: class . java ) ĊĠĠĠĠĠĠĠ Ġstart Intent . putExtra ( EXTRA _ PRE _ SELECT _ STREAM , Ġstream Id ) ĊĠĠĠĠĠĠĠ Ġstart Intent . putExtra ( EXTRA _ C AME _ FROM _ NOTIFICATION , Ġcame From Notification ) ĊĠĠĠĠĠĠĠ Ġstart Intent . flags Ġ= ĠIntent . FLAG _ ACTIVITY _ NEW _ TASK ĊĠĠĠĠĠĠĠ Ġstart Intent . flags Ġ= ĠIntent . FLAG _ ACTIVITY _ CLEAR _ TOP ĊĠĠĠĠĠĠĠ Ġreturn Ġstart Intent ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġstart Talk Screen For Rank Sharing ( context : ĠContext , Ġrank Position : ĠInt ): ĠIntent Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġstart Intent Ġ= ĠIntent ( context , ĠTalk Activity :: class . java ) ĊĠĠĠĠĠĠĠ Ġstart Intent . flags Ġ= ĠIntent . FLAG _ ACTIVITY _ NEW _ TASK ĊĠĠĠĠĠĠĠ Ġstart Intent . flags Ġ= ĠIntent . FLAG _ ACTIVITY _ CLEAR _ TOP ĊĠĠĠĠĠĠĠ Ġstart Intent . putExtra ( EXTRA _ RAN K ING _ VALUE , Ġrank Position ) ĊĠĠĠĠĠĠĠ Ġreturn Ġstart Intent ĊĠĠĠ Ġ} Ċ } Ċ