Skip to content

Conversation

@alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Dec 10, 2025

  • Tests written, or not not needed

Fixes

E  Could not dispatch event: class com.owncloud.android.ui.events.SearchEvent to subscribing class class com.owncloud.android.ui.fragment.OCFileListFragment
                                                                                                   android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
                                                                                                   	at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:8798)
                                                                                                   	at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:1606)
                                                                                                   	at android.view.View.requestLayout(View.java:25390)
                                                                                                   	at android.view.View.requestLayout(View.java:25390)
                                                                                                   	at android.view.View.requestLayout(View.java:25390)
                                                                                                   	at android.view.View.requestLayout(View.java:25390)
                                                                                                   	at android.view.View.requestLayout(View.java:25390)
                                                                                                   	at android.view.View.requestLayout(View.java:25390)
                                                                                                   	at androidx.drawerlayout.widget.DrawerLayout.requestLayout(DrawerLayout.java:1353)
                                                                                                   	at android.view.View.requestLayout(View.java:25390)
                                                                                                   	at android.view.View.requestLayout(View.java:25390)
                                                                                                   	at android.view.View.requestLayout(View.java:25390)
                                                                                                   	at android.view.View.requestLayout(View.java:25390)
                                                                                                   	at androidx.constraintlayout.widget.ConstraintLayout.requestLayout(ConstraintLayout.java:3842)
                                                                                                   	at android.view.View.requestLayout(View.java:25390)
                                                                                                   	at android.widget.TextView.checkForRelayout(TextView.java:9719)
                                                                                                   	at android.widget.TextView.setText(TextView.java:6311)
                                                                                                   	at android.widget.TextView.setText(TextView.java:6139)
                                                                                                   	at android.widget.TextView.setText(TextView.java:6091)
                                                                                                   	at android.widget.TextView.setText(TextView.java:6412)
                                                                                                   	at com.owncloud.android.ui.fragment.OCFileListFragment.updateSortButton(OCFileListFragment.java:1666)
                                                                                                   	at com.owncloud.android.ui.fragment.OCFileListFragment.handleSearchEvent(OCFileListFragment.java:1948)
                                                                                                   	at com.owncloud.android.ui.fragment.OCFileListFragment.onMessageEvent(OCFileListFragment.java:1919)
                                                                                                   	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                   	at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:517)
                                                                                                   	at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:511)
                                                                                                   	at org.greenrobot.eventbus.BackgroundPoster.run(BackgroundPoster.java:64)

How to reproduce?

  1. Open favorites
  2. Navigate to sub favorite dir
  3. Go back
  4. Try to reload favorites from drawer menu

@alperozturk96
Copy link
Collaborator Author

/backport to stable-3.35

Signed-off-by: alperozturk <alper_ozturk@proton.me>
@alperozturk96 alperozturk96 force-pushed the fix/reopening-list-from-navigation-view branch from dbc257d to 613fe6d Compare December 17, 2025 09:00
@github-actions
Copy link

Codacy

SpotBugs

CategoryBaseNew
Bad practice4343
Correctness7474
Dodgy code258258
Experimental11
Internationalization77
Malicious code vulnerability33
Multithreaded correctness3434
Performance4545
Security1818
Total483483

@github-actions
Copy link

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

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

@alperozturk96 alperozturk96 merged commit bc2a009 into master Dec 17, 2025
14 of 21 checks passed
@alperozturk96 alperozturk96 deleted the fix/reopening-list-from-navigation-view branch December 17, 2025 10:07
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.

3 participants