Skip to content

Conversation

@alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Oct 22, 2025

  • Tests written, or not not needed

Changes

Removes duplicated logic
Adds documentation

@alperozturk96 alperozturk96 changed the title Update connectivity service impl update connectivity service impl Oct 22, 2025
@alperozturk96 alperozturk96 changed the title update connectivity service impl simplify and add documentation for connectivity service impl Oct 22, 2025
@alperozturk96 alperozturk96 force-pushed the update-connectivity-service-impl branch from 919115b to c816746 Compare October 22, 2025 12:04
}
}

private boolean hasNonCellularConnectivity() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Deprecated logic changed with:

boolean isWifi = (nc != null) &&
            (nc.hasTransport(NetworkCapabilities.TRANSPORT_WIFI) ||
                nc.hasTransport(NetworkCapabilities.TRANSPORT_ETHERNET) ||
                nc.hasTransport(NetworkCapabilities.TRANSPORT_WIFI_AWARE));

@alperozturk96
Copy link
Collaborator Author

Fix tests:

Screenshot 2025-10-29 at 08 48 21

@alperozturk96 alperozturk96 marked this pull request as draft October 29, 2025 07:48
@alperozturk96 alperozturk96 force-pushed the update-connectivity-service-impl branch from c816746 to cba34ca Compare October 29, 2025 08:19
@github-actions
Copy link

@github-actions
Copy link

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

Codacy

Lint

TypemasterPR
Warnings4141
Errors1111

SpotBugs

CategoryBaseNew
Bad practice4242
Correctness7374
Dodgy code266266
Experimental11
Internationalization77
Malicious code vulnerability22
Multithreaded correctness3535
Performance4848
Security1818
Total492493

SpotBugs increased!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants