package Ġcom . bit love . f et life . navigator Ċ Ċ import Ġandroid . view . MenuItem Ċ import Ġcom . bit love . f et life . R Ċ import Ġcom . bit love . f et life . model . service . F et Life Api Intent Service Ċ import Ġcom . bit love . f et life . view . screen . Base Activity Ċ import Ġcom . bit love . f et life . view . screen . resource . Explore Activity Ċ import Ġcom . bit love . f et life . view . screen . resource . Notification History Activity Ċ import Ġcom . bit love . f et life . view . screen . resource . Tur bo Links View Activity Ċ import Ġcom . bit love . f et life . view . screen . resource . groups . Groups Activity Ċ import Ġcom . bit love . f et life . view . screen . resource . members . Members Activity Ċ import Ġcom . bit love . f et life . view . screen . standalone . Login Activity Ċ import Ġcom . bit love . f et life . view . screen . standalone . Release Notes Activity Ċ import Ġcom . bit love . f et life . view . screen . standalone . Settings Activity Ċ Ċ open Ġclass ĠBase Navigator Ġ( val Ġbase Activity : ĠBase Activity ){ ĊĊĠĠĠ Ġfun Ġon Open Url ( location : ĠString ) Ġ{ ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġon MenuItem ( menuItem : ĠMenuItem ) Ġ: ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġwhen ( menuItem ?. itemId ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ logout Ġ-> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġbase Activity . f et Life Application . user Session Manager . delete CurrentUser Db () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġbase Activity . f et Life Application . user Session Manager . on User Log Out () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġbase Activity . finish () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠLogin Activity . start Login ( base Activity . f et Life Application ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ċ // ĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ con versations Ġ-> ĠCon versations Activity . startActivity ( base Activity , Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ members Ġ-> ĠMembers Activity . startActivity ( base Activity , Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ about Ġ-> ĠTur bo Links View Activity . startActivity ( base Activity ," android ", base Activity . getString ( R . string . title _ activity _ about )) Ċ // ĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ friend requests Ġ-> ĠTur bo Links View Activity . startActivity ( base Activity ," requests ", base Activity . getString ( R . string . title _ activity _ friend requests )) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ rel notes Ġ-> ĠRelease Notes Activity . startActivity ( base Activity ) Ċ // ĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ notifications Ġ-> ĠTur bo Links View Activity . startActivity ( base Activity ," notifications ", base Activity . getString ( R . string . title _ activity _ notifications )) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ app _ notifications Ġ-> ĠNotification History Activity . startActivity ( base Activity , false ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ upload _ pic Ġ-> Ġ{ Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( is Storage Permission Granted ()) Ġ{ Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠPicture Upload Selection Dialog . show ( menu Activity ); Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġrequest Storage Permission ( Base Activity . PERMISSION _ REQUEST _ PI CTURE _ UPLOAD ); Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ upload _ video Ġ-> Ġ{ Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( is Storage Permission Granted ()) Ġ{ Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠVideo Upload Selection Dialog . show ( menu Activity ); Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġrequest Storage Permission ( Base Activity . PERMISSION _ REQUEST _ VIDEO _ UPLOAD ); Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ settings Ġ-> ĠSettings Activity . startActivity ( base Activity ) Ċ // ĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ feed Ġ-> ĠFeed Activity . startActivity ( base Activity ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ stuff _ you _ love Ġ-> ĠExplo re Activity . startActivity ( base Activity , ĠExplo re Activity . Explore . ST UFF _ YO U _ LO VE ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ fresh _ and _ per vy Ġ-> ĠExplo re Activity . startActivity ( base Activity , ĠExplo re Activity . Explore . F RESH _ AND _ PER VY ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ k ink y _ and _ popular Ġ-> ĠExplo re Activity . startActivity ( base Activity , ĠExplo re Activity . Explore . K INK Y _ AND _ POP ULAR ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ support Ġ-> ĠTur bo Links View Activity . startActivity ( base Activity ," support ", base Activity . getString ( R . string . title _ activity _ support )) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ ads Ġ-> ĠTur bo Links View Activity . startActivity ( base Activity ," ads ", base Activity . getString ( R . string . title _ activity _ ads )) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ glossary Ġ-> ĠTur bo Links View Activity . startActivity ( base Activity ," glossary ", base Activity . getString ( R . string . title _ activity _ glossary )) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ team Ġ-> ĠTur bo Links View Activity . startActivity ( base Activity ," team ", base Activity . getString ( R . string . title _ activity _ team )) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ events Ġ-> Ġ{ Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( is Location Permission Granted ()) Ġ{ Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠEvents Activity . startActivity ( menu Activity ); Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġrequest Location Permission ( Base Activity . PERMISSION _ REQUEST _ LOCATION ); Ċ // ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ groups Ġ-> ĠGroups Activity . startActivity ( base Activity , false ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . nav _ updates Ġ-> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġbase Activity . show Toast ( base Activity . getString ( R . string . message _ toast _ checking _ for _ updates )); ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠF et Life Api Intent Service . start Api Call ( base Activity , F et Life Api Intent Service . ACTION _ EXTERNAL _ CALL _ CHECK _ 4 _ UP DAT ES , true . toString ()); ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġfalse ĊĠĠĠ Ġ} Ċ Ċ } Ċ