ligi/PassAndroid

Launcher shortcut activities dismissed with the home button don't behave properly

nomis opened this issue · 0 comments

nomis commented

If launcher shortcuts are launched when the application is not running and they are not dismissed using the back button, they persist until the back button is used even when other shortcuts are opened:

  1. Application is not running (e.g. force stop)
  2. Open shortcut 1 (pass 1 is displayed)
  3. Press Home button
  4. Open shortcut 2 (pass 1 is displayed again)
    Steps 3 and 4 can be repeated indefinitely. Using the back button dismisses the pass and the process can then be repeated with either pass (which is then the one that sticks).
Screen_Recording_20230526_115108_One.UI.Home2.mp4

This is a problem because I expect the pass matching the shortcut to be opened, not a different pass based on whether or not the application has ever been started normally. I have to dismiss the stuck pass and then open the app directly to fix it.

If the application has been launched by its own icon then the shortcuts work but they stack up every time they're used:

  1. Application is not running (e.g. force stop)
  2. Open application
  3. Press Home button
  4. Open shortcut 1 (pass 1 is displayed)
  5. Press Home button
  6. Open shortcut 2 (pass 2 is displayed)
  7. Press Home button
  8. Open shortcut 1 (pass 1 is displayed)
  9. Press Home button
  10. Open shortcut 2 (pass 2 is displayed)
  11. Press Home button
  12. Open shortcut 1 (pass 1 is displayed)
  13. Press Home button
  14. Open shortcut 2 (pass 2 is displayed)
  15. Press Home button
  16. Open application (pass 2 is displayed)
  17. Press Back button (pass 1 is displayed)
  18. Press Back button (pass 2 is displayed)
  19. Press Back button (pass 1 is displayed)
  20. Press Back button (pass 2 is displayed)
  21. Press Back button (pass 1 is displayed)
  22. Press Back button (list of passes is displayed)
Screen_Recording_20230526_115652_One.UI.Home2.mp4

This behaviour is unexpected and makes using the application after having launched any of the shortcuts inconvenient. I'd expect at most one shortcut-launched pass to remain on the activity stack and ideally none of them when the application is launched directly (although this is probably not possible).

The process can be repeated indefinitely so at some point there could be too many shortcut activities, causing a crash or some other problem preventing the pass from being displayed. I've tested this with up to 26 shortcut launches in a row, which needs 26 presses of the back button to get back to the list of passes.

Version 3.7.3 (modified app name)
Android 13