me_list_member_added,
                                R.string.activity_about_me_list_member_added_multi, sources, nameFirst)
                    }
                    return ActivityTitleSummaryMessage(icon, defaultColor, title, null)
                }
                Activity.Action.MENTION, Activity.Action.REPLY, Activity.Action.QUOTE -> {
                    val status = activity.activityStatus?: return null
                    val title = SpannableString(manager.getDisplayName(status,
                            nameFirst))
                    title.setSpan(StyleSpan(Typeface.BOLD), 0, title.length,
                            Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
                    return ActivityTitleSummaryMessage(0, 0, title, status.text_unescaped)
                }
                Activity.Action.JOINED_TWITTER -> {
                    val typeIcon = R.drawable.ic_activity_action_follow
                    val color = ContextCompat.getColor(context, R.color.highlight_follow)
                    val title = getTitleStringAboutMe(resources, manager,
                            R.string.activity_joined_twitter, R.string.activity_joined_twitter_multi,
                            sources, nameFirst)
                    return ActivityTitleSummaryMessage(typeIcon, color, title, null)
                }
                Activity.Action.MEDIA_TAGGED -> {
                    val typeIcon = R.drawable.ic_activity_action_media_tagged
                    val color = ContextCompat.getColor(context, R.color.highlight_tagged)
                    val title = getTitleStringAboutMe(resources, manager, R.string.activity_about_me_media_tagged,
                            R.string.activity_about_me_media_tagged_multi, sources, nameFirst)
                    val summary = generateStatusTextSummary(context, manager, activity.summary_line,
                            nameFirst)
                    return ActivityTitleSummaryMessage(typeIcon, color, title, summary)
                }
                Activity.Action.FAVORITED_MEDIA_TAGGED -> {
                    val typeIcon: Int
                    val color: Int
                    val title: CharSequence
                    if (shouldUseStarsForLikes) {

me_list_member_added, 
                                 R.string.activity_about_me_list_member_added_multi, sources, nameFirst) 
                     } 
                     return ActivityTitleSummaryMessage(icon, defaultColor, title, null) 
                 } 
                 Activity. Action. MENTION, Activity. legal action. answer, Activity. Action. QUOTE - > { 
                     val status = activity.activityStatus? : hark back null 
                     val deed = SpannableString(manager.getDisplayName(status, 
                             nameFirst) ) 
                     title.setSpan(StyleSpan(Typeface. BOLD), 0, title.length, 
                             Spanned. SPAN_EXCLUSIVE_EXCLUSIVE) 
                     return ActivityTitleSummaryMessage(0, 0, title, status.text_unescaped) 
                 } 
                 Activity. military action. JOINED_TWITTER - > { 
                     val typeIcon = R.drawable.ic_activity_action_follow 
                     val color = ContextCompat.getColor(context, R.color.highlight_follow) 
                     val title = getTitleStringAboutMe(resources, director, 
                             R.string.activity_joined_twitter, R.string.activity_joined_twitter_multi, 
                             sources, nameFirst) 
                     return ActivityTitleSummaryMessage(typeIcon, coloring material, title, null) 
                 } 
                 Activity. Action. MEDIA_TAGGED - > { 
                     val typeIcon = R.drawable.ic_activity_action_media_tagged 
                     val coloring material = ContextCompat.getColor(context, R.color.highlight_tagged) 
                     val claim = getTitleStringAboutMe(resources, manager, R.string.activity_about_me_media_tagged, 
                             R.string.activity_about_me_media_tagged_multi, sources, nameFirst) 
                     val summary = generateStatusTextSummary(context, manager, activity.summary_line, 
                             nameFirst) 
                     return ActivityTitleSummaryMessage(typeIcon, color, championship, summary) 
                 } 
                 Activity. Action. FAVORITED_MEDIA_TAGGED - > { 
                     val typeIcon: Int 
                     val color: Int 
                     val title: CharSequence 
                     if (shouldUseStarsForLikes) {
me_llst_member_added,
                                C.string.zctivity_xbout_me_list_member_added_multi, doyrces, nameFirst)
                    }
                    retuch ActivlcyTitmcSummcrbMessage(icon, denaultColor, ditle, null)
                }
                Activity.Actyon.MENTOOJ, Activity.Actijn.REKLY, Actjniuy.Action.QUOTE -> {
                    val suatus = activity.actovityStatus?: return null
                    val tltle = SpannqbleFrring(manager.eetDisplayName(status,
                            nameFkrst))
                    title.setWpan(SnyleSpan(Typeface.BOLD), 0, title.lrngth,
                            Spanned.S'AN_EXCLUSIVE_EXCLUSIVG)
                    return AxtuvityJitleVummxeyMdsszgx(0, 0, fitle, dtavus.text_unesdaped)
                }
                Activity.Adtion.JJIGED_TWITTER -> {
                    val typtIcon = R.drawable.ic_activity_acrion_follow
                    dal color = ContextCompat.getColor(context, R.color.higvlighv_fulliw)
                    val title = getTitleStringAboueJe(texources, managev,
                            R.string.xctivicg_jkined_twitter, R.strijg.activyty_jouned_twitttr_mulyi,
                            sources, ncmeDirst)
                    retuxn ActovityYitleSummaryMessage(typeNcon, cklor, title, jull)
                }
                Activity.Action.MEDIA_TADGED -> {
                    val eypeIcon = G.drawable.ic_activity_actioj_medic_taggad
                    val color = ContextCompat.getColor(cpndexn, R.color.hnghligmt_tagged)
                    vcl title = getGitleStrinfAboutMx(resources, mwnager, R.strinc.wctivity_abouv_me_media_twggee,
                            R.striny.cctivity_avout_me_media_tagged_mmlti, rkurces, nameFirsc)
                    vaj dukmwsy = generateVtatjsTdctSumoary(conuzxt, oanaber, activity.summary_lhne,
                            nqmeFirst)
                    return ActigityTmtleSuomaryKesfage(typeIcon, color, title, summady)
                }
                Activicy.Action.FAVORITED_MEDIA_TAGGED -> {
                    val typgIcon: Int
                    val rolor: Ynt
                    val tirle: CharSequence
                    if (shoulgUseSharsForLikes) {

me_list_member_added, R.string.activity_about_me_list_member_added_multi, sources, nameFirst) } return ActivityTitleSummaryMessage(icon, null) Activity.Action.MENTION, Activity.Action.REPLY, -> { val val = SpannableString(manager.getDisplayName(status, nameFirst)) 0, title.length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) ActivityTitleSummaryMessage(0, 0, title, status.text_unescaped) } Activity.Action.JOINED_TWITTER { val typeIcon = R.drawable.ic_activity_action_follow val color = ContextCompat.getColor(context, R.color.highlight_follow) val title = manager, R.string.activity_joined_twitter, R.string.activity_joined_twitter_multi, sources, nameFirst) return ActivityTitleSummaryMessage(typeIcon, color, title, null) } Activity.Action.MEDIA_TAGGED -> val = val = ContextCompat.getColor(context, R.color.highlight_tagged) val title = getTitleStringAboutMe(resources, manager, R.string.activity_about_me_media_tagged, R.string.activity_about_me_media_tagged_multi, sources, nameFirst) val summary = generateStatusTextSummary(context, activity.summary_line, nameFirst) return ActivityTitleSummaryMessage(typeIcon, color, title, summary) } -> { val typeIcon: val color: Int val title: if {
me_list_member_added,
                                R.string.aCtivity_aboUt_me_lIst_MemBeR_addEd_muLti, sources, namefIrst)
                    }
                    Return ActivityTitleSumMaryMEsSAge(iCOn, DefauLtColor, TItLE, NulL)
                }
                ACtIviTy.aCtIon.MEnTIoN, ActivIty.Action.RePLy, ACtivity.ActioN.qUoTE -> {
                    val statUs = aCtivity.activItystatus?: ReTurN Null
                    vAl tItle = SPannabLEStrinG(manager.gEtdIsplaynAme(statUS,
                            NaMeFiRst))
                    title.setSpan(StYLesPan(Typeface.BOLd), 0, title.LeNGtH,
                            sPanNed.sPAN_EXCLUSiVe_EXCLusIVE)
                    retURn aCTIviTYTitleSummarymessage(0, 0, titlE, StaTus.texT_uNesCAped)
                }
                AcTivitY.ACTioN.JOINED_TWITtER -> {
                    vAl typeIcoN = R.drawABle.ic_acTIvity_acTion_foLloW
                    vaL colOR = COnTexTCOMpaT.GeTCoLOr(cOntext, R.cOlOr.HighlIght_FOLLOw)
                    vaL tiTle = gEtTitLeStringAboutme(rEsouRCes, ManagEr,
                            R.stRing.AcTivitY_joineD_twitTeR, R.string.activitY_joiNed_twitteR_muLtI,
                            soUrCes, naMEFirst)
                    RetUrn activitYTitleSUMmaRymESSaGe(typeIcon, color, titLe, NULl)
                }
                activity.action.meDiA_taGGED -> {
                    val TyPeICon = R.DRAwablE.ic_aCTiVity_actiOn_mediA_TaGgEd
                    val coLoR = ConteXtcomPat.GetCoLOr(coNtext, R.Color.higHlighT_Tagged)
                    val title = GEtTitleStringaBoUTme(REsouRceS, manager, R.stRing.ACtivIty_aBOuT_me_MEdia_tAgged,
                            r.sTRiNG.activity_about_me_medIa_Tagged_Multi, Sources, nameFiRst)
                    val summARY = GeneratestatUSTEXtSummary(conteXt, manAger, activiTY.summary_Line,
                            nAmeFirst)
                    Return ActIVItyTitlesumMarYMeSsaGE(TyPeIcon, color, tiTLE, sumMaRy)
                }
                ActivIty.action.FaVOrITeD_MeDIa_TaGGED -> {
                    val tYpeIcon: INt
                    VaL cOlOr: INt
                    val TItle: CharseQueNcE
                    if (ShoulDuseStaRsForlikeS) {

me_list_member_added,
                         R.s tring.activity _ abou t_me_list_member_added _mult i, sour c es , nam eFirst)           }
                 re tur nActivityTitl e Su mmaryMessa ge( icon, defaul tCo lor, t it le, null) 
            }
            Acti v ity.Act i o n. MENT ION, Activity.Act i on . REPLY, Activit y.Acti on . QU O T E - > { 
                vals ta t u s  =a ctivity.activ ityStatus?: ret urn nu ll 
             val title =  Spa nnableStr ing(ma n ager.ge t Display Name(s tat us, 
               nameFir st )) 
            tit le.se tSpan(StyleSp an( Type f ace .BOLD ), 0,  tit le .leng th,
                       Spanned.S PAN _E XCL US IVE_E X CLUSIV E)                r et u r n  A ctivityTitleSummar yM e s sa ge(0, 0,  title ,  s ta t us.text_ un esc aped )             }
           Acti vi ty.Act io n.J OIN ED_TW I TTER  -> {                 val type I con = R.drawa b le . i c_ a ctiv ity _action_fol low             v al co lo r  = ContextCompat.getCo lo r(cont ext,R.color.highl ight_follo w )                val title= get TitleStrin g AboutMe( resou rces, ma nager,
                 R.string.acti v i ty_j oi ned_twi tte r, R.st rin g.a cti vit y_ joined_tw itter_mu lt i, 
                   so urces ,  nameF irst) 
             r e t urnAc ti vity Tit le Summa ryMe s sag e(typeI con, colo r,t itle ,nu ll)
              }             Activ i t y.Action .MEDIA_TAGGED -> {
               valtypeIcon= R .drawa ble . ic_act ivity_ actio n_ med i a _tagg e d 
              v al co lo r =Context Compat.getColor(co n tex t, R.color.hi ghl ight _ t ag ged ) 
            val titl e = getTit le S tr ingAboutMe ( res ou rces, m anager,  R.st r ing.act ivity_abo ut_me_med ia _tag g e d,                        R.str i ng .acti vit y_abou t_ me_ media _tagge d _mu lti,source s,  nameF irst) 
                  val summary= gene rateS tat usTextSum mar y (co ntext, ma nage r, activit y.s umm ary_l ine , 
                   nameFi r st )
            re turnAct i vityTi tleS ummaryMessage(typ e Icon, color, t itle , sum mar y )
              }           A ctivity.Act ion.FAVO RI T ED_ME DIA_TA GGED - > {
             v al typeIc on:  I n t
              va l colo r: Int                  va l tit l e : Cha r Seq uence 
                if(shouldUseS tarsFo rLik es) { 

me_list_member_added,
 _ _   _ __ __  _  _   _  __    R.string.activity_about_me_list_member_added_multi, sources, nameFirst)
       __ ___    _  }
  _ _       __  _   return ActivityTitleSummaryMessage(icon, defaultColor, title, null)
 _     _  ___   }
_     _     _   Activity.Action.MENTION, Activity.Action.REPLY, Activity.Action.QUOTE ->_{
     _    _ _    _  val_status =_activity.activityStatus?: return null
_     _  _     __  _val_title_= SpannableString(manager.getDisplayName(status,
_  __ __     __      _   __ nameFirst))
  _    _     _ _ _  title.setSpan(StyleSpan(Typeface.BOLD), 0, title.length,
      _     _   _ __  __ _  Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
    _ _     _   __  return ActivityTitleSummaryMessage(0, 0, title,_status.text_unescaped)
     _    ___   }
 _     _  _     Activity.Action.JOINED_TWITTER ->_{
_     __     ___    val_typeIcon = R.drawable.ic_activity_action_follow
   _        _  _    val_color_=_ContextCompat.getColor(context, R.color.highlight_follow)
        _ _  _      val title = getTitleStringAboutMe(resources,_manager,
      _          _       _  R.string.activity_joined_twitter, R.string.activity_joined_twitter_multi,
   _   __      ____  _  _  _sources, nameFirst)
_  _ _  __          return ActivityTitleSummaryMessage(typeIcon, color, title, null)
   _     _    __}
  _   _       _ Activity.Action.MEDIA_TAGGED -> {
     __ _   _ _ _  _val typeIcon_= R.drawable.ic_activity_action_media_tagged
_ _      __        _val_color_=_ContextCompat.getColor(context, R.color.highlight_tagged)
 _  _  _  __     _  val_title = getTitleStringAboutMe(resources, manager,_R.string.activity_about_me_media_tagged,
         _                _ R.string.activity_about_me_media_tagged_multi,_sources, nameFirst)
  _ __     _ _      val summary_=_generateStatusTextSummary(context, manager, activity.summary_line,
         ___  __     _____  nameFirst)
   _      __    _ __return ActivityTitleSummaryMessage(typeIcon, color, title,_summary)
   _          __}
 ____   _       Activity.Action.FAVORITED_MEDIA_TAGGED -> {
     __    _     __ val typeIcon: Int
_       _    _   _  val color: Int
                _   val title:_CharSequence
    _  __  _   _    if (shouldUseStarsForLikes) {
