package Ġcom . android . support . factory Ċ Ċ import Ġandroid . support . di . Inject Ċ import Ġandroid . support . di . Share Scope Ċ import Ġcom . android . support . model . ui . Login Form Ċ import Ġcom . sample . app . model . entity . Account Entity Ċ Ċ @ Inject ( Share Scope . Activity ) Ċ class ĠAccount Factory Ġ{ ĊĊĠĠĠ Ġfun Ġcreate Form ( account : ĠAccount Entity ?): ĠLogin Form Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( account Ġ!= Ġnull ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠLogin Form ( account . email , Ġaccount . password , Ġtrue ) ĊĠĠĠĠĠĠĠ Ġreturn ĠLogin Form () ĊĠĠĠ Ġ} Ċ }