Skip to content
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

Build Fix #12111

Merged
merged 4 commits into from
Oct 31, 2023
Merged

Build Fix #12111

merged 4 commits into from
Oct 31, 2023

Conversation

alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Oct 31, 2023

  • Tests written, or not not needed

Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
) {
mCurrentDownload!!.cancel()
}
mCurrentDownload?.takeIf {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fix This condition is too complex (4). Defined complexity threshold for conditions is set to '4'

if (targetFiles != null) {
resultData.putParcelableArrayListExtra(EXTRA_FILES, targetFiles)
}
when (v) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fix Function onClick is nested too deeply.

@@ -184,54 +183,75 @@ class FileDownloader : Service(), OnDatatransferProgressListener, OnAccountsUpda
if (!intent.hasExtra(EXTRA_USER) || !intent.hasExtra(EXTRA_FILE)) {
Copy link
Collaborator Author

@alperozturk96 alperozturk96 Oct 31, 2023

Choose a reason for hiding this comment

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

Fix Function onStartCommand has 3 return statements which exceeds the limit of 2.

@github-actions
Copy link

Codacy

Lint

TypemasterPR
Warnings7979
Errors00

SpotBugs

CategoryBaseNew
Bad practice2626
Correctness7978
Dodgy code395385
Experimental22
Internationalization99
Malicious code vulnerability22
Multithreaded correctness99
Performance5856
Security1818
Total598585

@github-actions
Copy link

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

@AndyScherzinger AndyScherzinger merged commit 1868d03 into master Oct 31, 2023
18 of 20 checks passed
@delete-merged-branch delete-merged-branch bot deleted the fix/SyncFileNotEnoughSpaceDialogFragment branch October 31, 2023 09:53
@github-actions
Copy link

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