package Ġorg . wikipedia . suggest eded its Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . Menu Ċ import Ġandroid . view . MenuItem Ċ import Ġandroidx . appcompat . app . AlertDialog Ċ import Ġorg . wikipedia . Constants . Invoke Source Ċ import Ġorg . wikipedia . Constants . Invoke Source .* Ċ import Ġorg . wikipedia . R Ċ import Ġorg . wikipedia . activity . Single Fragment Activity Ċ import Ġorg . wikipedia . analytics . Suggest ed Ed its Fun nel Ċ import Ġorg . wikipedia . suggest eded its . Suggest ed Ed its Add Descriptions Fragment . Companion . newInstance Ċ import Ġorg . wikipedia . util . Feedback Util Ċ import Ġorg . wikipedia . views . Dialog Title With Image Ċ Ċ class ĠSuggest ed Ed its Add Descriptions Activity Ġ: ĠSingle Fragment Activity < Suggest ed Ed its Add Descriptions Fragment >() Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġsupport ActionBar !!. elevation Ġ= Ġif Ġ( intent . get Serializable Extra ( EXTRA _ SOURCE ) Ġ== ĠEDIT _ FEED _ TITLE _ DESC ) Ġ 8 f Ġelse Ġ 0 f ĊĠĠĠĠĠĠĠ Ġsupport ActionBar !!. set Display Home As Up Enabled ( true ) ĊĠĠĠĠĠĠĠ Ġsupport ActionBar !!. title Ġ= ĠgetString ( if Ġ( intent . get Serializable Extra ( EXTRA _ SOURCE ) Ġ== ĠEDIT _ FEED _ TITLE _ DESC ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . string . suggest ed _ ed its _ add _ descriptions Ġelse ĠR . string . suggest ed _ ed its _ translate _ descriptions ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Fragment (): ĠSuggest ed Ed its Add Descriptions Fragment Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġnew Instance ( intent . get Serializable Extra ( EXTRA _ SOURCE ) Ġas ĠInvoke Source ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate Options Menu ( menu : ĠMenu ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġmenu Inflater . inflate ( R . menu . menu _ suggest ed _ ed its , Ġmenu ) ĊĠĠĠĠĠĠĠ Ġreturn Ġtrue ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Options ItemSelected ( item : ĠMenuItem ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġwhen Ġ( item . itemId ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . menu _ help Ġ-> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠFeedback Util . show Android App Editing FAQ ( base Context ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġtrue ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . id . menu _ my _ cont ributions Ġ-> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠstartActivity ( Suggest ed Ed its Cont ributions Activity . new Intent ( this )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġtrue ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> Ġsuper . on Options ItemSelected ( item ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠEX TRA _ SOURCE Ġ= Ġ" source " ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠEX TRA _ SOURCE _ AD DED _ DESCRIPTION Ġ= Ġ" added Description " ĊĊĠĠĠĠĠĠĠ Ġfun Ġnew Intent ( context : ĠContext , Ġsource : ĠInvoke Source ): ĠIntent Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠIntent ( context , ĠSuggest ed Ed its Add Descriptions Activity :: class . java ). putExtra ( EXTRA _ SOURCE , Ġsource ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġfun Ġshow Edit Unlock Dialog ( context : ĠContext ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAlertDialog . Builder ( context ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Custom Title ( Dialog Title With Image ( context , ĠR . string . suggest ed _ ed its _ unlock _ add _ descriptions _ dialog _ title , ĠR . drawable . ic _ unlock _ ill ustration _ add , Ġtrue )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. setMessage ( R . string . suggest ed _ ed its _ unlock _ add _ descriptions _ dialog _ message ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Positive Button ( R . string . suggest ed _ ed its _ unlock _ dialog _ yes ) Ġ{ Ġ_, Ġ_ Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSuggest ed Ed its Fun nel . get ( ON BOARD ING _ DIALOG ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcontext . startActivity ( Suggest ed Ed its Tasks Activity . new Intent ( context , ĠEDIT _ FEED _ TITLE _ DESC )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Negative Button ( R . string . suggest ed _ ed its _ unlock _ dialog _ no , Ġnull ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. show () ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġfun Ġshow Translate Unlock Dialog ( context : ĠContext ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAlertDialog . Builder ( context ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Custom Title ( Dialog Title With Image ( context , ĠR . string . suggest ed _ ed its _ unlock _ translate _ descriptions _ dialog _ title , ĠR . drawable . ic _ unlock _ ill ustration _ translate , Ġtrue )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. setMessage ( R . string . suggest ed _ ed its _ unlock _ translate _ descriptions _ dialog _ message ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Positive Button ( R . string . suggest ed _ ed its _ unlock _ dialog _ yes ) Ġ{ Ġ_, Ġ_ Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSuggest ed Ed its Fun nel . get ( ON BOARD ING _ DIALOG ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcontext . startActivity ( Suggest ed Ed its Tasks Activity . new Intent ( context , ĠEDIT _ FEED _ TRANSL ATE _ TITLE _ DESC )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Negative Button ( R . string . suggest ed _ ed its _ unlock _ dialog _ no , Ġnull ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. show () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ