allow to query photos and videos also from external storages in gallery#782
allow to query photos and videos also from external storages in gallery#782AlvaroBrey merged 6 commits intomasterfrom
Conversation
Signed-off-by: szaimen <szaimen@e.mail.de>
|
/backport to stable-2.8 |
|
@tobiasKaminsky @AlvaroBrey I have no idea what I am doing so please review carefully :) |
Codecov Report
@@ Coverage Diff @@
## master #782 +/- ##
==========================================
+ Coverage 46.07% 46.28% +0.20%
==========================================
Files 164 164
Lines 6352 6343 -9
Branches 832 832
==========================================
+ Hits 2927 2936 +9
+ Misses 2988 2970 -18
Partials 437 437
|
src/main/java/com/owncloud/android/lib/resources/files/NcSearchMethod.java
Show resolved
Hide resolved
Signed-off-by: szaimen <szaimen@e.mail.de>
AlvaroBrey
left a comment
There was a problem hiding this comment.
Getting closer now :)
To fix compilation issues:
- Import
GetCapabilitiesRemoteOperationandOCCapabilityinSearchRemoteOperation - Add the
@JvmFieldannotation toNextcloudVersion.nexctloud_22, as it is fornextcloud_22, otherwise it's private.
Additionally, I think it would be better to pass either the entire OCCapability object, or the version, to NcSearchMethod, and then check the version inside that (rather than checking the version in SearchOperation). This way is more flexible and SearchOperation is kept a bit more decoupled from the inner workings of NcSearchMethod.
I think I added this to an already resolved communication. |
Signed-off-by: szaimen <szaimen@e.mail.de>
|
I hope I addressed all points. Though the compilation still fails :/ |
update tests Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
…itionals Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
5bf11a1 to
6d04f05
Compare
SpotBugs (new)
SpotBugs (master)
|
AlvaroBrey
left a comment
There was a problem hiding this comment.
Looks good, however this now needs changes in the app, in order to pass the new OCCapability param to SearchRemoteOperation wherever needed.
|
Client PR in nextcloud/android#9651 |
Attempt to fix nextcloud/android#8618
Inspired by nextcloud/photos#804
Best reviewed like this: https://github.com/nextcloud/android-library/pull/782/files?diff=unified&w=1
Signed-off-by: szaimen szaimen@e.mail.de