Skip to content

Conversation

@ashishkumar468
Copy link
Collaborator

@ashishkumar468 ashishkumar468 commented Nov 26, 2018

Description (required)
Media Details used to crashed when opened via Explore

Fixes #2029 NPE after tapping image in Explore

What changes did you make and why?
Initialise MediaDetailProvider based on its type as in activity or fragment
Tests performed (required)
Tested {build variant, ProdDebug} on {OnePlus 3T} with API level {27}.

  • Media Details via explore opens without any crashes

Screenshots showing what changed (optional - for UI changes)
NA

* Initialise MediaDetailProvider in based on its type as in activity or fragment
Copy link
Contributor

@maskaravivek maskaravivek left a comment

Choose a reason for hiding this comment

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

Looks good to me. :)

@codecov-io
Copy link

Codecov Report

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

Impacted file tree graph

@@              Coverage Diff               @@
##           2.9-release   #2036      +/-   ##
==============================================
- Coverage         4.07%   4.06%   -0.01%     
==============================================
  Files              224     224              
  Lines            11299   11309      +10     
  Branches          1043    1045       +2     
==============================================
  Hits               460     460              
- Misses           10805   10815      +10     
  Partials            34      34
Impacted Files Coverage Δ
...ee/nrw/commons/media/MediaDetailPagerFragment.java 0% <0%> (ø) ⬆️
...fr/free/nrw/commons/media/MediaDetailFragment.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 a248e61...edd48bf. Read the comment docs.

@neslihanturan neslihanturan self-requested a review November 26, 2018 18:37
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 @ashishkumar468 , seems good to me:)

@neslihanturan neslihanturan merged commit 48812c7 into commons-app:2.9-release Nov 26, 2018
@ashishkumar468 ashishkumar468 deleted the bugfix/npe_in_explore branch November 27, 2018 06:37
@neslihanturan neslihanturan changed the title Bug fix, issue #2029 Bug fix, issue #2029 NPE after tapping image in Explore Dec 3, 2018
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.

4 participants