mirror of
https://github.com/nextcloud/android.git
synced 2024-12-18 15:01:57 +03:00
Remove always-true component in condition, from CR
This commit is contained in:
parent
73798d2196
commit
e93de886b1
1 changed files with 3 additions and 3 deletions
|
@ -178,15 +178,15 @@ public class EditShareFragment extends Fragment {
|
||||||
// from checking when iOS is ready
|
// from checking when iOS is ready
|
||||||
compound = (CompoundButton) editShareView.findViewById(R.id.canEditCreateCheckBox);
|
compound = (CompoundButton) editShareView.findViewById(R.id.canEditCreateCheckBox);
|
||||||
compound.setChecked((sharePermissions & OCShare.CREATE_PERMISSION_FLAG) > 0);
|
compound.setChecked((sharePermissions & OCShare.CREATE_PERMISSION_FLAG) > 0);
|
||||||
compound.setVisibility((canEdit && areEditOptionsAvailable) ? View.VISIBLE : View.GONE);
|
compound.setVisibility((canEdit) ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
compound = (CompoundButton) editShareView.findViewById(R.id.canEditChangeCheckBox);
|
compound = (CompoundButton) editShareView.findViewById(R.id.canEditChangeCheckBox);
|
||||||
compound.setChecked((sharePermissions & OCShare.UPDATE_PERMISSION_FLAG) > 0);
|
compound.setChecked((sharePermissions & OCShare.UPDATE_PERMISSION_FLAG) > 0);
|
||||||
compound.setVisibility((canEdit && areEditOptionsAvailable) ? View.VISIBLE : View.GONE);
|
compound.setVisibility((canEdit) ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
compound = (CompoundButton) editShareView.findViewById(R.id.canEditDeleteCheckBox);
|
compound = (CompoundButton) editShareView.findViewById(R.id.canEditDeleteCheckBox);
|
||||||
compound.setChecked((sharePermissions & OCShare.DELETE_PERMISSION_FLAG) > 0);
|
compound.setChecked((sharePermissions & OCShare.DELETE_PERMISSION_FLAG) > 0);
|
||||||
compound.setVisibility((canEdit && areEditOptionsAvailable) ? View.VISIBLE : View.GONE);
|
compound.setVisibility((canEdit) ? View.VISIBLE : View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
setPermissionsListening(editShareView, true);
|
setPermissionsListening(editShareView, true);
|
||||||
|
|
Loading…
Reference in a new issue