In my app there is an activity with alias: MyActivity and MyAliasActivity registered in the Manifest. The purpose of the alias is to provide extra intent filter. This feature can be enabled/disabled in the runtime by the user. The activity and alias has got singleTop modifier.
However, if I start my app with the component disabled (MyActivity on the top), then I enable it, and broadcast the event matching the intent filter, MyActivity is created one more time (by the alias)- I've got two of them in the backstack which is undesired.
Can it he handled in any way? I need to have only one activity in the backstack.