android icon indicating copy to clipboard operation
android copied to clipboard

fix: reopening list from navigation view

Open alperozturk96 opened this issue 2 months ago • 4 comments

  • [x] 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 avatar Dec 10 '25 07:12 alperozturk96

/backport to stable-3.35

alperozturk96 avatar Dec 10 '25 07:12 alperozturk96

Codacy

SpotBugs

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

github-actions[bot] avatar Dec 17 '25 09:12 github-actions[bot]

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[bot] avatar Dec 17 '25 09:12 github-actions[bot]

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

github-actions[bot] avatar Dec 17 '25 09:12 github-actions[bot]