Skip to content

Switching to/from night mode causes crash on Nearby tab #3300

@tmutimer

Description

@tmutimer

Summary:

Toggling the night mode on or off, then navigating back to the nearby screen causes the map to not display properly. Tapping the List button then causes a crash.

Steps to reproduce:

  1. Open the nearby tab.
  2. Open the sidebar and go to settings
  3. Toggle once the night mode option
  4. Go back to nearby.
    ::DEFECT map does not show up. small white square region shows instead in top-right corner.
  5. Press list button
    ::DEFECT app crashes

It appears this occurs in NearbyParentFragment.getNearbyMapFragment() - in this method the view and animation variables remain null when the map fragment is reused.

System logs:

MapCrashLog.txt

Device and Android version:

Oneplus 5
Android 9
Stock OxygenOS 9.0.9

Commons app version:
2.12.0-debug-master

Screen-shots:
image

Would you like to work on the issue?
I would like to work on this myself if possible. This would be my first contribution, so I understand if this is not allowed.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions