-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iteration 2 for file detail & new sharing #2573
Conversation
cec0eb8
to
a7ca665
Compare
boolean shareViaLinkAllowed = (mContext != null && | ||
mContext.getResources().getBoolean(R.bool.share_via_link_feature)); | ||
boolean shareWithUsersAllowed = (mContext != null && | ||
mContext.getResources().getBoolean(R.bool.share_with_users_feature)); | ||
|
||
OCCapability capability = mComponentsGetter.getStorageManager().getCapability(mAccount.name); | ||
boolean shareApiEnabled = capability != null && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE via 84401e7
// SEE DETAILS | ||
if (!isSingleFile()) { | ||
private void filterDetails(List<Integer> toShow, List<Integer> toHide) { | ||
if (!isSingleSelection()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invert.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE via 84401e7
|
||
// Kept available offline | ||
private void filterKeepAvailableOffline(List<Integer> toShow, List<Integer> toHide, boolean synchronizing) { | ||
if (!allFiles() || synchronizing || allKeptAvailableOffline()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kept since it'll end up with
if (allFiles() || !synchronizing || !allKeptAvailableOffline()) {
|
||
// Not kept available offline | ||
private void filterDontKeepAvailableOffline(List<Integer> toShow, List<Integer> toHide, boolean synchronizing) { | ||
if (!allFiles() || synchronizing || allNotKeptAvailableOffline()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And everywhere else :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kept since it'll end up with
if (allFiles() || !synchronizing || !allKeptAvailableOffline()) {
} | ||
|
||
private void filterDeselectAll(List<Integer> toShow, List<Integer> toHide, boolean inSingleFileFragment) { | ||
if (!inSingleFileFragment) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invert again. Positive first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE via 84401e7
private static final String ARG_ACCOUNT = "ACCOUNT"; | ||
private static final String ARG_ACTIVE_TAB = "TAB"; | ||
|
||
@Nullable @BindView(R.id.fdProgressBlock) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kill the prefix pls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE via c3209d8
@BindView(R.id.searchView) | ||
SearchView searchView; | ||
|
||
@BindView(R.id.fdshareUsersList) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fd again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE via c3209d8
@@ -846,7 +846,7 @@ public void onClick(View v) { | |||
} | |||
|
|||
|
|||
/// BEWARE: next methods will failed with NullPointerException if called before onCreateView() finishes | |||
// BEWARE: next methods will failed with NullPointerException if called before onCreateView() finishes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"will fail" instead of "will failed".
also "next" -> "the following"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE via c3209d8
searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() { | ||
@Override | ||
public boolean onQueryTextSubmit(String query) { | ||
// return true to prevent the query is processed to be queried; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh. Can you rephrase this entire sentence? xD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE via c3209d8
String eTag = arbitraryDataProvider.getValue(account, ThumbnailsCacheManager.AVATAR); | ||
String serverName = account.name.substring(account.name.lastIndexOf('@') + 1, account.name.length()); | ||
String eTag = arbitraryDataProvider.getValue(userId + "@" + serverName, ThumbnailsCacheManager.AVATAR); | ||
String avatarKey = "a_" + userId + "_" + serverName + "_" + eTag; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"avatar_"
<size android:height="1dp" /> | ||
</shape> | ||
</item> | ||
</layer-list> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE via c3209d8
android:title="@string/common_rename" | ||
app:showAsAction="never" | ||
android:showAsAction="never" | ||
android:orderInCategory="1" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove orderInCategory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE via c3209d8
src/main/res/values/strings.xml
Outdated
@@ -784,4 +785,7 @@ | |||
<string name="create_new_folder">Create new folder</string> | |||
<string name="uploads_view_upload_status_virus_detected">Virus detected. Upload cannot be completed!</string> | |||
<string name="tags">Tags</string> | |||
<string name="sharee_add_failed">Adding sharee failed</string> | |||
<string name="unsharing_failed">Unsharing failed</string> | |||
<string name="updating_share_failed">Updateing share failed</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updaeting -> Updating
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE via c3209d8
Just waiting for Drone to "succeed"... |
Lint check is green, everything is green, Drone is not working right again... so merging |
Yay, awesome work! :) Really looking forward to this landing in the release! |
Iteration 1 can be found here: #2533 ☑️
WiP for #2485 and collab with @tobiasKaminsky
ListView
withRecyclerView
Open for iteration 3/4