Home-screen shortcut to a folder that no longer exists opens an "open with" chooser instead of an error
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 79/100
Línea de trabajo
Empieza en MainActivity.java, cerca de las líneas 2019–2029, donde la incidencia indica que se abren las rutas de los accesos directos, y sigue cómo distingue los directorios de los archivos. Comprueba el manejo de las rutas de los accesos directos en Utils.java, cerca de las líneas 476–491. Haz que la falta de una carpeta produzca un error y mantenga abierta la carpeta actual; verifícalo cambiando el nombre de una carpeta después de crear su acceso directo en la pantalla de inicio y tocando el acceso directo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
When a home-screen folder shortcut ("Add Shortcut") points to a folder that no longer exists, for example because it was renamed in Amaze, tapping it does not show an error. Amaze stays at the storage root and Android shows an app chooser (Certificate Installer, Chrome, Contacts), because the missing path is opened as a file.
To Reproduce
Steps to reproduce the behavior:
- Long-press a folder (here
TestB) → ⋮ → "Add Shortcut" → "Add automatically". - In Amaze, rename
TestBtoTestC. - Go to the home screen and tap the "TestB" shortcut.
- Amaze shows
/storage/emulated/0and an "open with" chooser appears.
Expected behavior
A message that the folder no longer exists (and ideally the shortcut is updated or disabled when the folder is renamed in Amaze), not an app chooser for a non-existent file.
Screenshots
| home shortcut | app chooser after tap |
|---|---|
| The "TestB" shortcut on the home screen. | After renaming the folder and tapping the shortcut. |
Smartphone (please complete the following information):
- Device: Android Emulator (google_apis image)
- OS: Android 11 (API 30)
- Rooted: No
- Version: 3.11.5 (versionCode 127, release APK from GitHub). Also seen on 3.11.4 and 3.11.3.
Additional context
The path is opened as a folder only if it is a directory; anything else, including a path that does not exist, goes to FileUtils.openFile: MainActivity.java#L2019-L2029
The shortcut stores the path as its id and extra (Utils.java#L476-L491) and is not updated after a rename.
Possible fix: if the path does not exist, show an error toast (and stay at the current folder) instead of calling openFile.
Similar older report for the drawer: #328.
- Lenguaje dominante
- Kotlin
- Estrellas
- 6.5k
- Forks
- 1.7k
- Merge medio
- 1 d 1 h
- PR fusionados (30 d)
- 10
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una 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 TeamAmaze/AmazeFileManager
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
TeamAmaze/AmazeFileManager#4786 ·
Los mantenedores suelen responder en 1 día
-
About page support descriptions are clipped on the right at large display and font sizesPosiblemente ocupada @mvanhorn la tomó hace 11 días. AbiertoArea-UIUX Issue-Easy (good first issue) Issue-Glitch
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
TeamAmaze/AmazeFileManager#4781 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Area-FileOperations Issue-Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
TeamAmaze/AmazeFileManager#4131 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
From-Email Issue-Feature
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
TeamAmaze/AmazeFileManager#4796 ·
Los mantenedores suelen responder en 1 día
-
Renaming a parent folder makes a hidden file visible and leaves the old path in Hidden FilesPosiblemente ocupada @sanketpatel32 la tomó hoy. AbiertoArea-FileOperations Area-HiddenFiles Issue-Bug
Dificultad 3/5 1-2 días Aptitud para principiantes 66/100
TeamAmaze/AmazeFileManager#4794 ·
Los mantenedores suelen responder en 1 día
Todos los issues de TeamAmaze/AmazeFileManager
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
thtbee/nectarlink#912 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
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 ·
-
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
-
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