Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Crash: View already has a parent on Android 7.0 with Split screen + pageTransitions #4015
Please, provide the details below:
Did you verify this is a real problem by searching [Stack Overflow]
I can consistently reproduce the problem on my Android 7.0 emulator.
Tell us about the problem
My App crashes on Android 7.0, if I have switched page and open Android 7.0's split screen.
Which platform(s) does your issue occur on?
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
I don't know if it's caused by the same problem, but I've seen the error many times. But I haven't been able to reproduce it, making it hard to write a proper bug report on the issue.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
I've added a test project here:
Argh! So it's not only my app. I've been getting this a lot in the latest release of my app. (Logged in analytics).
Running vanilla NS v2.5.2
Didn't have to tap around: just start app, hold the "square" on first view and initiate the split-screen = crash.
Confirming this issue is reproducible with the template Angular app and pageTransition on nsRouterLink.
This is probably related to how Android handles the activities on split screen and after app has been minimized and might be related to this one. In fact, if you set Developer options -> Don't keep activities option ON then the application will crash on split screen but will work on minimize. If the same options is OFF then the application will work on app minimize but will crash on the split mode.
@m-abs, @manijak as a temporary solution in order to avoid the app crashing runtime you can disable the split screen mode for your application. TO do so all you need to do is to provide a false boolean value for android:resizeableActivity key in your AndroidManifest.xml