mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
Fix suboptions display in 'can edit' option for folders
This commit is contained in:
parent
71f317bea5
commit
6755453fa1
1 changed files with 4 additions and 1 deletions
|
@ -249,12 +249,15 @@ public class EditShareFragment extends Fragment {
|
|||
case R.id.canEditSwitch:
|
||||
Log_OC.v(TAG, "canEditCheckBox toggled to " + isChecked);
|
||||
/// sync subordinate CheckBoxes
|
||||
boolean isFederated = ShareType.FEDERATED.equals(mShare.getShareType());
|
||||
if (mFile.isFolder()) {
|
||||
if (isChecked) {
|
||||
for (int i = 0; i < sSubordinateCheckBoxIds.length; i++) {
|
||||
//noinspection ConstantConditions, prevented in the method beginning
|
||||
subordinate = (CompoundButton) getView().findViewById(sSubordinateCheckBoxIds[i]);
|
||||
subordinate.setVisibility(View.VISIBLE);
|
||||
if (!isFederated) {
|
||||
subordinate.setVisibility(View.VISIBLE);
|
||||
}
|
||||
if (!subordinate.isChecked() &&
|
||||
!mFile.isSharedWithMe()) { // see (1)
|
||||
toggleDisablingListener(subordinate);
|
||||
|
|
Loading…
Reference in a new issue