mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
Merge pull request #9545 from nextcloud/fix/autoupload-check-crash
UploadFilesActivity: don't attempt to check selectAll if selectAll is not visible in menu
This commit is contained in:
commit
587b371e76
1 changed files with 9 additions and 7 deletions
|
@ -462,6 +462,7 @@ public class UploadFilesActivity extends DrawerActivity implements LocalFileList
|
|||
}
|
||||
|
||||
private void setSelectAllMenuItem(MenuItem selectAll, boolean checked) {
|
||||
if (selectAll != null) {
|
||||
selectAll.setChecked(checked);
|
||||
if (checked) {
|
||||
selectAll.setIcon(R.drawable.ic_select_none);
|
||||
|
@ -471,6 +472,7 @@ public class UploadFilesActivity extends DrawerActivity implements LocalFileList
|
|||
}
|
||||
updateUploadButtonActive();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCheckAvailableSpaceStart() {
|
||||
|
|
Loading…
Reference in a new issue