Skip to content
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

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

Closed
kbhardwaj123 opened this issue Apr 21, 2020 · 6 comments · Fixed by #3693
Closed

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

kbhardwaj123 opened this issue Apr 21, 2020 · 6 comments · Fixed by #3693

Comments

@kbhardwaj123
Copy link
Contributor

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 :)

@macgills
Copy link
Collaborator

I'd say definitely remove MediaDetailSpacer

The fade is sort of nice(?) but I don't see a reason for it to be there. I'd wait for more people to weigh in on that.

@kbhardwaj123
Copy link
Contributor Author

Tagging @neslihanturan for review on this aspect

@misaochan
Copy link
Member

I feel that both can be removed. The fade is not worth the extra complexity now IMO.

@neslihanturan
Copy link
Collaborator

I agree about removing both, simplicity is better.

1 similar comment
@neslihanturan
Copy link
Collaborator

I agree about removing both, simplicity is better.

@kbhardwaj123
Copy link
Contributor Author

since most of us are in favour of removing both i will create a PR for the same

ashishkumar468 pushed a commit to ashishkumar468/apps-android-commons that referenced this issue Oct 10, 2020
ashishkumar468 pushed a commit to ashishkumar468/apps-android-commons that referenced this issue Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants