-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add support for file versions #2685
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2685 +/- ##
=========================================
- Coverage 6.52% 6.49% -0.03%
=========================================
Files 285 287 +2
Lines 28896 29039 +143
Branches 4214 4231 +17
=========================================
+ Hits 1886 1887 +1
- Misses 26726 26868 +142
Partials 284 284
|
There is no going back ;) On a tablet it would be a split pane between file list and file details :) I also did this for the file details already by introducing a listener interface (implemented by the activity) so you could just extend that one and ping the activity that it needs to refresh the other fragment/list :) |
|
@tobiasKaminsky how do you currently evaluate if the preview is still valid? Because you could use the same logic here. Either check the etag of the preview against the endpoint. Or check the etag of the actual file that should also change. |
|
Thanks @rullzer, currently we are checking during sync if the modification date has changed and if so, we simply fetch a new thumbnail. |
|
As comment PR is based on this, I did not rebase, but merge. |
|
This is now ready for code review & testing. |
| * return the reference to the file detail activity fragment to communicate with it. | ||
| * | ||
| * @return reference to the {@link FileDetailSharingFragment} | ||
| */ |
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.
--> FileDetailActivitiesFragment ;)
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.
Copy&paste error ;-)
|
@tobiasKaminsky I only get an error screen (with the icon and so on) when opening a file that has versions on your testing Nc14 server instance :/ |
|
@AndyScherzinger can you write me on irc or per mail the exact file alongside with the credentials? Then I can have a look at exact the same file. |
|
@AndyScherzinger this was because I cloned server manually and forgot activity app. ! I rebased it! |
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
refresh file list / activity list on succesfull restore Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
- in background for file deletion - download new file version if file was previously downloaded - show snackbar on success - cleanup Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
a56d234 to
818ec64
Compare
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
|
@tobiasKaminsky shouldn't you have merged nextcloud/android-library#150 first and moved back to referencing master-SNAPSHOT??? |
|
Ups. @mario can you quickly have a look at nextcloud/android-library#150? :-D |
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
|
@tobiasKaminsky nextcloud/android-library#150 has been merged and master has been build via jitpack |
fix wrong library from #2685
Resolves #1200
TODO