Skip to content

fix: empty list state visibility#15976

Merged
alperozturk96 merged 6 commits into
masterfrom
fix/empty-list-state-visibility
Dec 4, 2025
Merged

fix: empty list state visibility#15976
alperozturk96 merged 6 commits into
masterfrom
fix/empty-list-state-visibility

Conversation

@alperozturk96
Copy link
Copy Markdown
Collaborator

@alperozturk96 alperozturk96 commented Nov 17, 2025

  • Tests written, or not not needed

Changes

If the adapter has data or adapter is null, the empty list should not be visible.
There is no need to update the empty view if its state hasn’t changed.
The empty view state must be checked after setting the adapter and via the adapter’s observer.

tobiasKaminsky

This comment was marked as resolved.

Signed-off-by: alperozturk <alper_ozturk@proton.me>

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/fragment/ExtendedListFragment.kt

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
@alperozturk96 alperozturk96 force-pushed the fix/empty-list-state-visibility branch from 1f3bce3 to f1e59ec Compare December 3, 2025 10:49
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 3, 2025

Codacy

SpotBugs

CategoryBaseNew
Bad practice4343
Correctness7474
Dodgy code268267
Experimental11
Internationalization77
Malicious code vulnerability33
Multithreaded correctness3434
Performance4848
Security1818
Total496495

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 3, 2025

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

github-actions Bot commented Dec 3, 2025

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

@alperozturk96 alperozturk96 merged commit 036d1e4 into master Dec 4, 2025
14 of 20 checks passed
@alperozturk96 alperozturk96 deleted the fix/empty-list-state-visibility branch December 4, 2025 07:33
@alperozturk96 alperozturk96 added this to the Nextcloud App 3.35.0 milestone Dec 4, 2025
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