Merge pull request #959 from yogpstop/develop

Fix toggle account availbility cause toggle other account availbility
This commit is contained in:
Mariotaku 2017-09-15 00:23:02 -05:00 committed by GitHub
commit 25e40038f5
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, adapter.requestManager.loadProfileImage(adapter.context, details, adapter.profileImageStyle,
profileImage.cornerRadius, profileImage.cornerRadiusRatio).into(profileImage) profileImage.cornerRadius, profileImage.cornerRadiusRatio).into(profileImage)
accountType.setImageResource(AccountUtils.getAccountTypeIcon(details.type)) accountType.setImageResource(AccountUtils.getAccountTypeIcon(details.type))
toggle.setOnCheckedChangeListener(null)
toggle.isChecked = details.activated toggle.isChecked = details.activated
toggle.setOnCheckedChangeListener(adapter.checkedChangeListener) toggle.setOnCheckedChangeListener(adapter.checkedChangeListener)
toggle.tag = layoutPosition toggle.tag = layoutPosition