unfoldedcircle / feature-and-bug-tracker

Feature and bug tracker repository for Unfolded Circle products
24 stars 0 forks source link

[bug] When calling an activity within an activity, the UI remains in the first ("mother") activity #266

Open Kamblian opened 9 months ago

Kamblian commented 9 months ago

Is there an existing issue for this?

Description

It is possible to start a second activity out of a first activity. However, the UI remains in the first activity instead of showing the activity-page of the second activity. Maybe this is intended behavior, but at least when the two activities are in the same activity-group, it doesn't make any sense to keep showing the UI of the first activity which will be closed by the call of the second activity.

How to Reproduce

  1. Create an activity "First_Activity"
  2. Create a second activity "Second_Activity"
  3. In "First_Activity", select the entity "Second_Activity" to be used in this activity
  4. In the UI of "First_Activity", create a soft-button and assign the start-sequence of "Second_Activity" to it
  5. Put the two activities in a activity-group, lets say "Test-Activity-Group"
  6. Start the first activity "First_Activity"
  7. On the UI of "First_Activity", hit the soft-button to start "Second_Activity"
  8. "Second_Activity" is started, but the display still shows the UI of "First_Activity". Or in other terms: start-sequence-steps and final UI of "Second_Activity" aren't displayed.

Expected behavior

When the second activity is called within the first active activity, the display should show the steps of the start-sequence of "Second_Activity" and then go to the UI of "Second_Activity". When the two activities are in the same activity-group, this behavior should be the default, if not grouped, maybe the behavior could be selected as an option.

System version

v1.5.2

What part of the system affected by the problem?

UI

Additional context

No response

SpikeNbg commented 5 days ago

When starting an activity from home assistant (via the home assistant integration), the same problem appears:

The Remote Two starts the activity like expected, but it doesn't open the UI of the activity.

So when fixing this bug, it would be great if this situation could also be checked, but it's probably the same location in source code is assume:

"When starting an activity > change UI to the first screen in activity" or something like that