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

@github-actions
Copy link

test-Unit test failed, but no output was generated. Maybe a preliminary stage failed.

@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.

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