Repository navigation
Select-all and Select-inverse added to UploadFilesActivity - #2404
Conversation
473d64b to
29c99a5
Compare
4862255 to
0fa31f0
Compare
|
Starting the review here... |
| } | ||
| } | ||
| int noOfFiles = mFileListFragment.getAdapter().getNoOfFilesInDir(); | ||
| if(noOfFilesSelected == noOfFiles){ |
There was a problem hiding this comment.
Space after if and parenthesis
| int noOfFiles = mFileListFragment.getAdapter().getNoOfFilesInDir(); | ||
| if(noOfFilesSelected == noOfFiles){ | ||
| mItemSelectAll.setVisible(false); | ||
| } else{ |
| } else{ | ||
| mItemSelectAll.setVisible(true); | ||
| } | ||
| if(noOfFiles > 0){ |
| } | ||
| if(noOfFiles > 0){ | ||
| mItemSelectInverse.setVisible(true); | ||
| } else{ |
| */ | ||
| private void setSelectAllMenuItemState(){ | ||
| if (mFileListFragment.getAdapter().getNoOfFilesInDir() | ||
| == mFileListFragment.getCheckedFilePaths().length) { |
There was a problem hiding this comment.
Put the equal at the end of the previous line so that the reader knows that there's something below that
if (mFileListFragment.getAdapter().getNoOfFilesInDir() ==
mFileListFragment.getCheckedFilePaths().length) {
| @Override | ||
| public void onSaveInstanceState(Bundle savedInstanceState) { | ||
| savedInstanceState.putStringArrayList(OUT_STATE_CHECKED_FILES, mAdapter.getCheckedFiles()); | ||
| savedInstanceState.putIntegerArrayList(OUT_STATE_NO_OF_FILES_SELECTED,mNoOfFilesSelected); |
| mAdapter.setCheckedFiles(savedInstanceState.getStringArrayList(OUT_STATE_CHECKED_FILES)); | ||
| mNoOfFilesSelected = savedInstanceState.getIntegerArrayList(OUT_STATE_NO_OF_FILES_SELECTED); | ||
| } else{ | ||
| mNoOfFilesSelected = new ArrayList<Integer>(); |
There was a problem hiding this comment.
Think you do not need Integer here, just write <>
| } | ||
|
|
||
| public void selectAll(){ | ||
| for(int i = 0; i < mAdapter.getCount(); i++) { |
There was a problem hiding this comment.
Some spaces between for and if in this method and selectInverse() one
|
@SD1998 first code review in here, please have a look at the requested changes |
f0c8607 to
a8d3eac
Compare
|
@davigonz I have made the changes. |
| * @author David A. Velasco | ||
| * @author Shashvat Kedia | ||
| * @author Christian Schabesberger | ||
| * Copyright (C) 2018 ownCloud GmbH. |
There was a problem hiding this comment.
Please avoid this on each touched file. So I made this 5 minute PR #2444 to solve this at once.
Great, thanks @SD1998 , one tiny change more and this is ready for QA |
|
@davigonz I have made the changes |
37479d3 to
3023b03
Compare
|
Let's QA this |
(1) [FIXED]Check out these steps:
Current: Not only are selected all the items, also the list is re-sorted CC @SD1998 |
(2) [FIXED]
Current: The items selected in 1. are the select4ed Android 7 |
|
@jesmrec Thanks, I will look into these issues. |
|
@SD1998 we are planning to release a new beta the incoming days. Do you think it will be posible to include? if not, no worries, we have a bit of extra time till the final 2.10 release. |
0826d1c to
dc18a78
Compare
|
@jesmrec I have fixed the bugs. |
|
Thanks!!! i will take a look and let you know the final result. |
|
All stuff fixed. Approved- @SD1998 please solve the existing conflict in |
|
Thanks. Branch is not rebased yet, this is the last step before merging |
dc18a78 to
e49cd99
Compare
|
@jesmrec I have done the rebase. |
|
Perfect... merging |
Fix to issue #1015.
BUGS & IMPROVEMENTS