Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

add image transparency and fix issues with gifs #2731

Merged
merged 3 commits into from
Nov 15, 2018
Merged

add image transparency and fix issues with gifs #2731

merged 3 commits into from
Nov 15, 2018

Conversation

dkanada
Copy link
Contributor

@dkanada dkanada commented Nov 14, 2018

I added the PhotoView dependency as mentioned in #2602 so I could fix the WebView issues and changed the background color to match the current theme.

@dkanada
Copy link
Contributor Author

dkanada commented Nov 14, 2018

I'm guessing you don't want to add jitpack as a new maven repo but I couldn't get it working without that change, so let me know if you have any ideas. Hopefully I can remove that line somehow.

@bmarty bmarty added this to the Sprint 16 milestone Nov 14, 2018
@bmarty
Copy link
Member

bmarty commented Nov 14, 2018

Hi @dkanada ,
Thanks for this new PR. It looks great!
No pb for jitpack dependency.
Would you please add the license for PhotoView in the file open_source_licenses.html (in the Apache 2 section)
Thanks
Benoît

if (!mMediasCache.isMediaCached(mediaUrl, width, height, mimeType)) {
// display nothing
container.addView(view, 0);
return view;
Copy link
Member

Choose a reason for hiding this comment

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

This return has gone away, not sure it is intended. the actual code is so unclear...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was intended, I don't think it makes a difference but adding two views to the container can cause a crash. I was getting that crash a couple times while modifying the code, so I changed that section a bit. It should work the same as before, now there is just one path to add a view to the container and return.

Copy link
Member

Choose a reason for hiding this comment

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

ok

@dkanada
Copy link
Contributor Author

dkanada commented Nov 15, 2018

Signed-off-by: Dillon Kanada [email protected]

@bmarty bmarty merged commit 7046c73 into element-hq:develop Nov 15, 2018
@dkanada
Copy link
Contributor Author

dkanada commented Nov 15, 2018

Somewhat related, I noticed that neither unencrypted nor e2e gifs get thumbnails in the event parameters. However, unencrypted rooms seem to supply a thumbnail while e2e rooms require a complete download. Are there multiple methods to set thumbnails for an event?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants