Merge pull request #959 from yogpstop/develop
Fix toggle account availbility cause toggle other account availbility
This commit is contained in:
commit
25e40038f5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue