android icon indicating copy to clipboard operation
android copied to clipboard

fix: connectivity service impl

Open alperozturk96 opened this issue 4 months ago • 4 comments

  • [x] Tests written, or not not needed

Fixes: https://github.com/nextcloud/android/issues/14681

Deduplicates isNetworkAndServerAvailable logic

Removes c.isWifi() && !c.isMetered() from internet walled logic since isConnected already covers local internet and internet access

Implements ConnectivityManager.NetworkCallback for better network state listening

Removes deprecated logics

Adds better documentation

alperozturk96 avatar Oct 20 '25 14:10 alperozturk96

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/15820.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[bot] avatar Nov 17 '25 14:11 github-actions[bot]

Codacy

SpotBugs

CategoryBaseNew
Bad practice4343
Correctness7476
Dodgy code260259
Experimental11
Internationalization77
Malicious code vulnerability33
Multithreaded correctness3434
Performance4848
Security1818
Total488489

SpotBugs increased!

github-actions[bot] avatar Dec 05 '25 07:12 github-actions[bot]

test-Unit test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/15820-Unit-test-07-46

github-actions[bot] avatar Dec 05 '25 07:12 github-actions[bot]

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

github-actions[bot] avatar Dec 05 '25 08:12 github-actions[bot]