Title: Problem navigation with BottomNavigation element of Nativescript and material design · Issue #8132 · NativeScript/NativeScript · GitHub
Open Graph Title: Problem navigation with BottomNavigation element of Nativescript and material design · Issue #8132 · NativeScript/NativeScript
X Title: Problem navigation with BottomNavigation element of Nativescript and material design · Issue #8132 · NativeScript/NativeScript
Description: Environment @nativescript/core 6.2.1 Nativescript-Vue 2.4.0 tns-android 6.2.0 nativescript-material-core 3.0.1 Describe the bug As you can see, I can navigate from page 2 to page 1, but when navigating from page 1 to the homepage, an exc...
Open Graph Description: Environment @nativescript/core 6.2.1 Nativescript-Vue 2.4.0 tns-android 6.2.0 nativescript-material-core 3.0.1 Describe the bug As you can see, I can navigate from page 2 to page 1, but when naviga...
X Description: Environment @nativescript/core 6.2.1 Nativescript-Vue 2.4.0 tns-android 6.2.0 nativescript-material-core 3.0.1 Describe the bug As you can see, I can navigate from page 2 to page 1, but when naviga...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/8132
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problem navigation with BottomNavigation element of Nativescript and material design","articleBody":"**Environment**\r\n@nativescript/core 6.2.1\r\nNativescript-Vue 2.4.0\r\ntns-android 6.2.0\r\nnativescript-material-core 3.0.1\r\n\r\n**Describe the bug**\r\nAs you can see, I can navigate from page 2 to page 1, but when navigating from page 1 to the homepage, an exception is raised.\r\nThis does not happen in version 2.5.2 of this plugin\r\nI think there was something wrong with the BottomNavigation element of Nativescript\r\n\r\n\r\n**To Reproduce**\r\ntns run android\r\n\r\n**Expected behavior**\r\n```\r\nSystem.err: An uncaught Exception occurred on \"main\" thread.\r\nSystem.err: The specified child already has a parent. You must call removeView() on the child's parent first.\r\nSystem.err:\r\nSystem.err: StackTrace:\r\nSystem.err: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.\r\nSystem.err: \tat android.view.ViewGroup.addViewInner(ViewGroup.java:5269)\r\nSystem.err: \tat android.view.ViewGroup.addView(ViewGroup.java:5090)\r\nSystem.err: \tat android.view.ViewGroup.addView(ViewGroup.java:5030)\r\nSystem.err: \tat android.view.ViewGroup.addView(ViewGroup.java:5003)\r\nSystem.err: \tat androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:887)\r\nSystem.err: \tat androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManagerImpl.java:1238)\r\nSystem.err: \tat androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:1303)\r\nSystem.err: \tat androidx.fragment.app.FragmentManagerImpl.dispatchStateChange(FragmentManagerImpl.java:2659)\r\nSystem.err: \tat androidx.fragment.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManagerImpl.java:2613)\r\nSystem.err: \tat androidx.fragment.app.Fragment.performActivityCreated(Fragment.java:2624)\r\nSystem.err: \tat androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:904)\r\nSystem.err: \tat androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManagerImpl.java:1238)\r\nSystem.err: \tat androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:1303)\r\nSystem.err: \tat androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:439)\r\nSystem.err: \tat androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManagerImpl.java:2079)\r\nSystem.err: \tat androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:1869)\r\nSystem.err: \tat androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManagerImpl.java:1824)\r\nSystem.err: \tat androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManagerImpl.java:1727)\r\nSystem.err: \tat androidx.fragment.app.FragmentManagerImpl$2.run(FragmentManagerImpl.java:150)\r\nSystem.err: \tat android.os.Handler.handleCallback(Handler.java:873)\r\nSystem.err: \tat android.os.Handler.dispatchMessage(Handler.java:99)\r\nSystem.err: \tat android.os.Looper.loop(Looper.java:214)\r\nSystem.err: \tat android.app.ActivityThread.main(ActivityThread.java:7156)\r\nSystem.err: \tat java.lang.reflect.Method.invoke(Native Method)\r\nSystem.err: \tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)\r\nSystem.err: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)\r\n```\r\n\r\n**Sample project**\r\n[https://github.com/fvdung/bug-bottomNavigation-Nativescript-with-material-design](https://github.com/fvdung/bug-bottomNavigation-Nativescript-with-material-design)\r\n","author":{"url":"https://github.com/dungfv","@type":"Person","name":"dungfv"},"datePublished":"2019-11-22T08:34:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/8132/NativeScript/issues/8132"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:965294e5-be64-4195-7b21-c9f01b512cbd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2FA:17C560:1FBE26E:2BCDCEA:69739EF1 |
| html-safe-nonce | 8a28c2dcdf9c04ec321c6795fda19845487e778bd3e6bb555a1317926aef5c19 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkZBOjE3QzU2MDoxRkJFMjZFOjJCQ0RDRUE6Njk3MzlFRjEiLCJ2aXNpdG9yX2lkIjoiMjg3NDYyMTAwMzA5NjYyODk3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1e79922e438660aba78e6f24bebe93f4205fe5f740ce048af6dda788bd527132 |
| hovercard-subject-tag | issue:527059575 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/8132/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8ccfb683e6201c4394562f50af5a933a9e898a17735dd75a23f79a3a2ac12478/NativeScript/NativeScript/issues/8132 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8ccfb683e6201c4394562f50af5a933a9e898a17735dd75a23f79a3a2ac12478/NativeScript/NativeScript/issues/8132 |
| og:image:alt | Environment @nativescript/core 6.2.1 Nativescript-Vue 2.4.0 tns-android 6.2.0 nativescript-material-core 3.0.1 Describe the bug As you can see, I can navigate from page 2 to page 1, but when naviga... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dungfv |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2050cdbbbbb4ed55fd8fdf9b956111480f540c8aea2ae70cb27cdafc585f54a8 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | db1779077eea7e25848d6e8f2461754c9e48f3ec |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width