-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NavigationView compatibility with Fragment #623
Comments
Hey @m-harisqurashi thanks for bringing this to us. You're right, we need to add some documentation for how to implement the It's not immediately obvious, but this is how you can call
Back pressed is tricky as there isn't a way to listen to this in a |
@danesfeder , I also think that It's missing from these Lines 541 to 564 in 630b38b
Related mapbox/mapbox-gl-native#10809 (comment) too |
The destroy issue is being worked --> #632 |
When click on |
@m-harisqurashi can you share your |
I've created a
|
According to
But incase of fragment we may or may not destroy |
@m-harisqurashi Yeah you're right, good catch here. Found the issue and should be addressed in #643 |
Hi guys calling |
@hakobast do you mind opening a new issue to track this? Can you please include the version of the SDK you're using and a stack trace for the error? Thanks! |
@danesfeder yes i can open new issue. SDK version is
maybe this is related to issue |
I have the same problem .... Are there any comments on to solve it? .... |
Is onDestroy added for fragment ? |
NavigationView needs
onCreate
,onBackPressedand
andonRestoreInstanceState
which doesn't allowed inside fragment implementation. As far as i understand given example is for activity only but for fragment we are unable to use NavigationView life cycle methods.As we can not call
navigationView.onCreate
inside Fragment'sonCreate
can we usenavigationView.onCreate(null)
insideonCreateView
oronViewCreated
but what aboutonBackPressedand
onRestoreInstanceState
in fragment.The text was updated successfully, but these errors were encountered: