Skip to content

Conversation

@ashishkumar468
Copy link
Collaborator

Description (required)

Fixes Nearby Crashes when options menu is clicked #3303

What changes did you make and why?
Initialize bottom-sheet-behavior in onViewCreated

Tests performed (required)

Tested betaDebug on Android 9

* Initialise bottom-sheet-behaviour in onViewCreated
Copy link

@tests-checker tests-checker bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add tests to make sure this change works as expected?

@codecov-io
Copy link

Codecov Report

Merging #3304 into 2.12-release will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@               Coverage Diff               @@
##           2.12-release   #3304      +/-   ##
===============================================
- Coverage          6.52%   6.52%   -0.01%     
===============================================
  Files               270     270              
  Lines             11641   11643       +2     
  Branches            909     909              
===============================================
  Hits                760     760              
- Misses            10821   10823       +2     
  Partials             60      60
Impacted Files Coverage Δ
...commons/nearby/fragments/NearbyParentFragment.java 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 959b3af...550c672. Read the comment docs.

@neslihanturan neslihanturan changed the title Fixes #3303 Fixes #3303 Nearby Crashes when options menu is clicked Dec 24, 2019
Copy link
Collaborator

@neslihanturan neslihanturan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @ashishkumar468 . Even if it prevents the crash, it does not work as intended for me. I think instead of moving the line "initViews" is called, we should make sure "childMapFragmentAttached" is called after changing settings too.

@ashishkumar468
Copy link
Collaborator Author

@neslihanturan True, but I was hoping if that could be done in a separate PR. The initViews() function should have been done in the fragments onViewCreated anyways. What do you think?

@misaochan misaochan mentioned this pull request Jan 21, 2020
30 tasks
@neslihanturan
Copy link
Collaborator

Closing this one sine the other one seems related #3322

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants