Back gesture in photo viewer causes cascading exit (closes photo and album)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start in ViewPagerFragment, where swipe-down dismissal handles ACTION_CANCEL the same as ACTION_UP, then check how MediaActivity resumes and consumes back key input. The issue names no test, so reproduce on an Android device or emulator with gesture navigation. Done means a back gesture dismisses only the photo, whether the swipe is quick or slow, and the album stays open.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Checklist
- I can reproduce the bug with the latest version given here.
- I made sure that there are no existing issues - open or closed - to which I could contribute my information.
- I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
- I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
- I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- This issue contains only one bug.
- I have read and understood the contribution guidelines.
Affected app version
1.14.1
Affected Android/Custom ROM version
Android 13 / crDroid 9.9 (LineageOS 20 based)
Affected device model
Realme 8 (RMX3085)
How did you install the app?
GitHub releases
Steps to reproduce the bug
- Open any album and tap a photo to open it full screen.
- Perform a back gesture from the edge of the screen using Android system gesture navigation.
- Notice that if the swipe is held briefly or performed slowly, the gesture dismisses the photo, immediately falls through to the underlying album view, and exits to the home launcher.
Expected behavior
The back gesture should only dismiss the current photo and return to the album view, regardless of whether the gesture is flicked quickly or held.
Actual behavior
Both the photo viewer and album view exit in quick succession, dumping the user out of the app to the home launcher.
Screenshots/Screen recordings
No response
Additional information
Root cause analysis:
- In ViewPagerFragment, ACTION_CANCEL was treated identically to ACTION_UP in swipe-down dismissal logic. When an edge back gesture begins, the system gesture monitor steals the touch channel (sending ACTION_CANCEL), which prematurely triggered activity?.finish() while the user was still swiping.
- When the underlying MediaActivity resumed while the gesture was still finishing or repeating back events, it immediately consumed the trailing back input.
I already have an end-to-end fix implemented and tested on my physical device (separating ACTION_CANCEL, debouncing activity transition back inputs, and filtering repeat back key events).
Please label this issue as 'help wanted' so I can contribute the fix via a pull request.
- Lenguaje dominante
- Kotlin
- Estrellas
- 3.8k
- Forks
- 270
- Merge medio
- 1 d 6 h
- PR fusionados (30 d)
- 7
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de FossifyOrg/Gallery
-
bug needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
FossifyOrg/Gallery#1235 ·
Los mantenedores suelen responder en 1 día
-
bug needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
FossifyOrg/Gallery#1215 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
"Fix Date Taken value" ignores OffsetTimeOriginalPosiblemente ocupada @PedroFlores199 la tomó hace 6 días. Abiertobug needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
FossifyOrg/Gallery#1213 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
App crashes if AccessMediaLocation permission is revokedQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
FossifyOrg/Gallery#1196 · 12 comentarios ·
Los mantenedores suelen responder en 1 día
-
Renaming a locked folder silently removes its lockQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
FossifyOrg/Gallery#1195 ·
Los mantenedores suelen responder en 1 día
Todos los issues de FossifyOrg/Gallery
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
bug 🐞
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
grote/Transportr#1029 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
TeamAmaze/AmazeFileManager#4800 ·
Los mantenedores suelen responder en 1 día
-
Mobile release verification reports missing build inputs with a custom Cargo target directoryAbiertobug good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getsotto/sotto-authenticator#139 ·
Los mantenedores suelen responder en 1 día
-
enhancement module:webview p3
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
NucleusFramework/Nucleus#1004 ·
Los mantenedores suelen responder en 1 día