Skip to content

Media needs refactoring to remove code that has been rendered useless #3687

@kbhardwaj123

Description

@kbhardwaj123

Summary:

After analysing the media section i came across the following things which can be removed:

  • The MediaDetailSpacer class has been rendered useless, it was previously used in the fragment_media_detail.xml file but after some recent changes it is not required.

  • The updateTheDarkness method inside MediaDetailFragment was used when we had a partially transparent media detail fragment so that when the user pulls it up the Alpha of the image was changed to make the details readable but now since the design has been completely overhauled i think we should remove this.

This is what the updateTheDarkness method does:
Before Scroll
Screenshot_20200421_125645_fr free nrw commons beta

After Scroll
Screenshot_20200421_125650_fr free nrw commons beta

Would you like to work on the issue?
Yes :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions