Fix bug toggle account availbility cause toggle other account availbility

This commit is contained in:
yogpstop 2017-09-15 11:56:23 +09:00
parent f379e6e271
commit 19bd2d4d4f
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class AccountViewHolder(
adapter.requestManager.loadProfileImage(adapter.context, details, adapter.profileImageStyle,
profileImage.cornerRadius, profileImage.cornerRadiusRatio).into(profileImage)
accountType.setImageResource(AccountUtils.getAccountTypeIcon(details.type))
toggle.setOnCheckedChangeListener(null)
toggle.isChecked = details.activated
toggle.setOnCheckedChangeListener(adapter.checkedChangeListener)
toggle.tag = layoutPosition