Apps claims PWA is installed even though it's not
- /e/ version: 0.9-2020042751613 — Android 9
- Device model: Pocophone F1
- When it started to occur: Since Apps bring PWA support?
- Reproducible with the last /e/ version: yes
- Reproducible with LineageOS: no, it's about Aps.
Summary
-
The device is unusable -
The bug is the source of a data loss or a big waste of time -
The bug concerns a third party app -
The bug concerns security -
The bug concerns privacy
The problem
Steps to reproduce
- Go to Apps (store from /e/)
- Optional: enable PWA only in settings
- Install any PWA
- Remove that "PWA"
- Go back to Apps again and install it again
What is the current behavior?
"Shortcut already exists"
What is the expected correct behavior?
It installs the PWA, as I just deleted it, then it's false to say that the shortcut already exist.
Technical informations
Relevant logs (adb logcat
)
Relevant screenshots
Solutions
Workaround
Possible fixes
- The line creating the toast
- The function used to determine whether this Toast should be created
- In the last method, one if statement is empty. It's definitively not something expected, as this if statement is useless now.