Work fork of an Android Jabber client for bridge users git.sr.ht/~singpolyma/cheogram-android
sopranica sgx xmpp jabber
0

Configure Feed

Select the types of activity you want to include in your feed.

Video play button

Goes to the video url (usually embed url) instead of the whole webpage.

Stephen Paul Weber (Sep 17, 2024, 11:53 PM -0500) 2276ee00 ca6bbc3a

+49 -22
+7
src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java
··· 1552 1552 binding.title.setText(getItem(position).findChildContent("title", "https://ogp.me/ns#")); 1553 1553 binding.description.setText(getItem(position).findChildContent("description", "https://ogp.me/ns#")); 1554 1554 binding.url.setText(getItem(position).findChildContent("url", "https://ogp.me/ns#")); 1555 + final var video = getItem(position).findChildContent("video", "https://ogp.me/ns#"); 1556 + if (video != null && video.length() > 0) { 1557 + binding.playButton.setVisibility(View.VISIBLE); 1558 + binding.playButton.setOnClickListener((v) -> { 1559 + new FixedURLSpan(video).onClick(v); 1560 + }); 1561 + } 1555 1562 return binding.getRoot(); 1556 1563 } 1557 1564 });