Fix user cell in rights edit activity not clickable

This commit is contained in:
NekoInverter 2020-03-01 22:33:58 +08:00
parent 7a30478eda
commit 7f5c8cd8fd
No known key found for this signature in database
GPG Key ID: 280D6CCCF95715F9
1 changed files with 2 additions and 2 deletions

View File

@ -313,7 +313,7 @@ public class ChatRightsEditActivity extends BaseFragment {
});
listView.setOnItemClickListener((view, position) -> {
if (!canEdit) {
if (!canEdit && position != 0) {
return;
}
if (position == 0) {
@ -988,7 +988,7 @@ public class ChatRightsEditActivity extends BaseFragment {
@Override
public boolean isEnabled(RecyclerView.ViewHolder holder) {
if (!canEdit) {
if (!canEdit && holder.getAdapterPosition() != 0) {
return false;
}
int type = holder.getItemViewType();