Skip to content

Commit

Permalink
Add context parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
romellfudi committed May 9, 2021
1 parent f26ce85 commit f95dffb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import timber.log.Timber
*/
val moduleNFC = module {

single { (activity: Activity) -> ProgressDialog(activity) }
factory { (activity: Activity) -> ProgressDialog(activity) }

single<NfcReadUtility> { NfcReadUtilityImpl() }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ import com.romellfudi.fudinfc.util.interfaces.NfcReadUtility
import kotlinx.android.synthetic.main.activity_main.*
import org.koin.core.KoinComponent
import org.koin.core.inject
import org.koin.core.parameter.parametersOf
import java.math.BigInteger

class MainActivity : NfcAct(), KoinComponent {

private val mProgressDialog: ProgressDialog by inject()
private val mProgressDialog: ProgressDialog by inject { parametersOf(this@MainActivity)}

private val mNfcReadUtility: NfcReadUtility by inject()

Expand Down

0 comments on commit f95dffb

Please sign in to comment.