Open grundleborg opened 8 years ago
I saw that issue on a project.
Be sure that your single activity has the lanchMode set to singleTask
.
<activity
android:name="my.Activity"
android:label="@string/app_name"
android:launchMode="singleTask" />
Also, what version of architect are you on?
I'm seeing a weird crash in a mortar-architect powered app. It's occurring occasionally for about 10% of the app's user base, and unfortunately I haven't been able to reproduce the crash myself on any device. The stack trace looks roughly as follows:
The code of my MainActivity is more or less identical to that shown in the mortar-architect sample app.
So far, the best explanation I've been able to come up with is that in some weird circumstances MainActivity::onDestroy() is not getting called, and so when MainActivity::onCreate() next gets called, the call to Navigator.find() is retrieving a Navigator that is already activated, thus the precondition check failed. What I can't really figure out is: 1) Is this actually a valid explanation? 2) What is the appropriate way to work around it?