Last active
November 8, 2022 08:22
-
-
Save aqua30/63a83481243901888e1c31793da7fb9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MemberListViewHolder(mContext: Context, itemView:View):RecyclerView.ViewHolder(itemView){ | |
lateinit var userPreference: Preference<LoginResponse> | |
init{ | |
super.itemView | |
ButterKnife.bind(this,itemView) | |
inject(context) | |
} | |
private fun inject(context: Context) { | |
val entryPoint = EntryPointAccessors.fromActivity( | |
context as FragmentActivity, | |
UserListViewHolderEntryPoint::class.java | |
) | |
userPreference = entryPoint.loginPref | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment