Skip to content

edit tags#16672

Open
tobiasKaminsky wants to merge 4 commits intomasterfrom
editTags
Open

edit tags#16672
tobiasKaminsky wants to merge 4 commits intomasterfrom
editTags

Conversation

@tobiasKaminsky
Copy link
Copy Markdown
Member

Disclaimer: Claude AI

@github-actions
Copy link
Copy Markdown

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

Comment thread app/src/main/java/com/nextcloud/ui/tags/TagManagementViewModel.kt Outdated
Comment thread app/src/main/java/com/nextcloud/ui/tags/TagManagementViewModel.kt Outdated
Comment thread app/src/main/java/com/nextcloud/ui/tags/adapter/TagListAdapter.kt
Comment thread app/src/main/java/com/nextcloud/ui/tags/TagListAdapter.kt Outdated
Comment thread app/src/main/java/com/nextcloud/ui/tags/TagManagementViewModel.kt Outdated
Comment thread app/src/main/java/com/nextcloud/ui/tags/TagManagementViewModel.kt
Comment thread app/src/main/java/com/nextcloud/ui/tags/TagManagementViewModel.kt Outdated
val nextcloudClient = clientFactory.createNextcloudClient(currentAccountProvider.user)
val createResult = CreateTagRemoteOperation(name).execute(nextcloudClient)

if (createResult.isSuccess) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Apply fail fast princible instead of nested ifs.

.show(fragmentManager, "actions");
}

private void refreshTagChips(Context context) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

FileDetailFragment already 900+ lines of code. Let's not make it more harder to maintain. Please create a new Kotlin class and pass reference and handle the refresh tag chips there.

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@github-actions
Copy link
Copy Markdown

APK file: https://github.com/nextcloud/android/actions/runs/24389201000/artifacts/6423672148
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@github-actions
Copy link
Copy Markdown

Codacy

SpotBugs

CategoryBaseNew
Bad practice3535
Correctness6969
Dodgy code227227
Experimental11
Internationalization77
Malicious code vulnerability22
Multithreaded correctness3434
Performance4242
Security1616
Total433433

@github-actions
Copy link
Copy Markdown

APK file: https://github.com/nextcloud/android/actions/runs/24439364984/artifacts/6444218935
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

@github-actions
Copy link
Copy Markdown

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

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.

2 participants