Skip to content

fix(gallery-fragment): illegal state exception#16812

Merged
alperozturk96 merged 1 commit into
masterfrom
fix/gallery-fragment-attach-activity
Apr 8, 2026
Merged

fix(gallery-fragment): illegal state exception#16812
alperozturk96 merged 1 commit into
masterfrom
fix/gallery-fragment-attach-activity

Conversation

@alperozturk96

Copy link
Copy Markdown
Collaborator

Issue

Exception java.lang.IllegalStateException:
  at androidx.fragment.app.Fragment.requireActivity (Fragment.java:1005)
  at com.owncloud.android.ui.fragment.GalleryFragment.updateSubtitle (GalleryFragment.java:410)
  at com.owncloud.android.ui.fragment.GalleryFragment.showAllGalleryItems (GalleryFragment.java:406)
  at com.owncloud.android.ui.fragment.GalleryFragment.searchCompleted (GalleryFragment.java:278)
  at com.owncloud.android.ui.asynctasks.GallerySearchTask.onPostExecute (GallerySearchTask.java:104)
  at com.owncloud.android.ui.asynctasks.GallerySearchTask.onPostExecute (GallerySearchTask.java:33)
  at android.os.AsyncTask.finish (AsyncTask.java:771)
  at android.os.AsyncTask.-$$Nest$mfinish (Unknown Source)
  at android.os.AsyncTask$InternalHandler.handleMessage (AsyncTask.java:788)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loopOnce (Looper.java:232)
  at android.os.Looper.loop (Looper.java:317)
  at android.app.ActivityThread.main (ActivityThread.java:8751)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:580)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:892)

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

Codacy

SpotBugs

CategoryBaseNew
Bad practice3636
Correctness6969
Dodgy code229229
Experimental11
Internationalization77
Malicious code vulnerability22
Multithreaded correctness3434
Performance4242
Security1616
Total436436

@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

APK file: https://github.com/nextcloud/android/actions/runs/24122304240/artifacts/6322079016
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

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

@alperozturk96 alperozturk96 merged commit dfbf33c into master Apr 8, 2026
17 of 21 checks passed
@alperozturk96 alperozturk96 deleted the fix/gallery-fragment-attach-activity branch April 8, 2026 09:48
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