Skip to content

Conversation

@tobiasKaminsky
Copy link
Member

@tobiasKaminsky tobiasKaminsky commented Sep 22, 2022

allow to favorite/unfavorite it

Signed-off-by: tobiasKaminsky [email protected]

  • Tests written, or not not needed

allow to favorite/unfavorite it

Signed-off-by: tobiasKaminsky <[email protected]>
@github-actions
Copy link

Codacy

Lint

TypemasterPR
Warnings8585
Errors00

SpotBugs

CategoryBaseNew
Bad practice2929
Correctness4646
Dodgy code354354
Experimental11
Internationalization99
Multithreaded correctness99
Performance5858
Security2828
Total534534

Android-library is not set to master branch in build.gradle

@github-actions
Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/10754.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.

@github-actions
Copy link

@nextcloud-android-bot
Copy link
Collaborator

return position;
}

public void setFavoriteAttributeForItemID(String fileId, boolean favorite, boolean removeFromList) {
Copy link
Member

Choose a reason for hiding this comment

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

Method should be renamed to setFavoriteAttributeForRemotePath

note = firstShare.note
fileId = firstShare.fileSource
remoteId = firstShare.remoteId.toString()
remoteId = firstShare.fileSource.toString()
Copy link
Member

Choose a reason for hiding this comment

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

This is a bit confusing. Why are we setting remoteId from OCShare.fileSource and not from OCShare.remoteId? It may make sense to add a comment to explain why

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.

4 participants