Remove always-true component in condition, from CR

This commit is contained in:
David A. Velasco 2016-11-14 09:33:34 +01:00 committed by AndyScherzinger
parent 73798d2196
commit e93de886b1
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -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);