Skip to content

DocumentsStorageProvider: open thumbnail directly#6886

Merged
tobiasKaminsky merged 1 commit into
masterfrom
docImage
Sep 7, 2020
Merged

DocumentsStorageProvider: open thumbnail directly#6886
tobiasKaminsky merged 1 commit into
masterfrom
docImage

Conversation

@tobiasKaminsky

@tobiasKaminsky tobiasKaminsky commented Sep 3, 2020

Copy link
Copy Markdown
Member

fix #6884

Signed-off-by: tobiasKaminsky tobias@kaminsky.me

Testing

Writing tests is very important. Please try to write some tests for your PR.
If you need help, please do not hesitate to ask in this PR for help.

unit tests
instrumented tests
UI tests

  • Tests written, or not not needed

fix #6884

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@nextcloud-android-bot

Copy link
Copy Markdown
Collaborator

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/15727.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@nextcloud-android-bot

Copy link
Copy Markdown
Collaborator

Codacy

394

Lint

TypemasterPR
Warnings8181
Errors00

SpotBugs (new)

Warning TypeNumber
Bad practice Warnings27
Correctness Warnings54
Internationalization Warnings9
Multithreaded correctness Warnings9
Performance Warnings72
Security Warnings44
Dodgy code Warnings105
Total320

SpotBugs (master)

Warning TypeNumber
Bad practice Warnings27
Correctness Warnings54
Internationalization Warnings9
Multithreaded correctness Warnings9
Performance Warnings72
Security Warnings44
Dodgy code Warnings105
Total320

@codecov

codecov Bot commented Sep 4, 2020

Copy link
Copy Markdown

Codecov Report

Merging #6886 into master will increase coverage by 0.02%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master    #6886      +/-   ##
============================================
+ Coverage     28.57%   28.60%   +0.02%     
  Complexity        5        5              
============================================
  Files           427      427              
  Lines         34199    34197       -2     
  Branches       4729     4729              
============================================
+ Hits           9773     9782       +9     
+ Misses        22965    22956       -9     
+ Partials       1461     1459       -2     
Impacted Files Coverage Δ Complexity Δ
...droid/providers/DiskLruImageCacheFileProvider.java 9.30% <0.00%> (ø) 0.00 <0.00> (ø)
...ud/android/providers/DocumentsStorageProvider.java 50.14% <0.00%> (+0.28%) 0.00 <0.00> (ø)
...ain/java/com/owncloud/android/db/UploadResult.java 39.74% <0.00%> (-2.57%) 0.00% <0.00%> (ø%)
...cloud/android/datamodel/UploadsStorageManager.java 66.41% <0.00%> (-2.27%) 0.00% <0.00%> (ø%)
.../java/com/owncloud/android/utils/DisplayUtils.java 30.20% <0.00%> (-2.05%) 0.00% <0.00%> (ø%)
.../third_parties/daveKoeller/AlphanumComparator.java 82.14% <0.00%> (-1.20%) 0.00% <0.00%> (ø%)
...loud/android/datamodel/ThumbnailsCacheManager.java 38.32% <0.00%> (-0.73%) 0.00% <0.00%> (ø%)
...loud/android/ui/fragment/ExtendedListFragment.java 51.40% <0.00%> (-0.32%) 0.00% <0.00%> (ø%)
...com/owncloud/android/ui/activity/FileActivity.java 21.27% <0.00%> (-0.28%) 0.00% <0.00%> (ø%)
.../owncloud/android/files/services/FileUploader.java 48.96% <0.00%> (-0.21%) 0.00% <0.00%> (ø%)
... and 8 more

@grote grote left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know anything about the DiskLruImageCacheFileProvider, but the rest of the changes look good to me.

@jmue jmue left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested successfully, Exception is gone. LGTM

@tobiasKaminsky
tobiasKaminsky merged commit 51cf63b into master Sep 7, 2020
@delete-merged-branch
delete-merged-branch Bot deleted the docImage branch September 7, 2020 08:02
@AndyScherzinger AndyScherzinger added this to the Nextcloud App 3.14.0 milestone Sep 7, 2020
thelittlefireman pushed a commit to thelittlefireman/android that referenced this pull request Mar 19, 2021
DocumentsStorageProvider: open thumbnail directly
Signed-off-by: thelittlefireman <thelittlefireman@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DocumentStorageProvider throws java.lang.SecurityException

5 participants