From ec073552bd9d2c465b4645505de48980f525635f Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Thu, 23 Jun 2022 10:47:39 +0200 Subject: [PATCH 1/2] Expose pusher profile tag in advanced settings Signed-off-by: Johannes Marbach --- changelog.d/6369.feature | 2 ++ .../features/settings/push/PushGatewayItem.kt | 3 +++ vector/src/main/res/layout/item_pushgateway.xml | 17 +++++++++++++++++ vector/src/main/res/values/strings.xml | 1 + 4 files changed, 23 insertions(+) create mode 100644 changelog.d/6369.feature diff --git a/changelog.d/6369.feature b/changelog.d/6369.feature new file mode 100644 index 0000000000..3c3e936dfd --- /dev/null +++ b/changelog.d/6369.feature @@ -0,0 +1,2 @@ + Expose pusher profile tag in advanced settings + \ No newline at end of file diff --git a/vector/src/main/java/im/vector/app/features/settings/push/PushGatewayItem.kt b/vector/src/main/java/im/vector/app/features/settings/push/PushGatewayItem.kt index ae163eee0d..03eb581b7f 100644 --- a/vector/src/main/java/im/vector/app/features/settings/push/PushGatewayItem.kt +++ b/vector/src/main/java/im/vector/app/features/settings/push/PushGatewayItem.kt @@ -48,6 +48,7 @@ abstract class PushGatewayItem : EpoxyModelWithHolder() holder.appName.text = pusher.appDisplayName holder.url.setTextOrHide(pusher.data.url, hideWhenBlank = true, holder.urlTitle) holder.format.setTextOrHide(pusher.data.format, hideWhenBlank = true, holder.formatTitle) + holder.profileTag.setTextOrHide(pusher.profileTag, hideWhenBlank = true, holder.profileTagTitle) holder.deviceName.text = pusher.deviceDisplayName holder.removeButton.setOnClickListener { interactions.onRemovePushTapped(pusher) @@ -60,6 +61,8 @@ abstract class PushGatewayItem : EpoxyModelWithHolder() val deviceName by bind(R.id.pushGatewayDeviceNameValue) val formatTitle by bind(R.id.pushGatewayFormat) val format by bind(R.id.pushGatewayFormatValue) + val profileTagTitle by bind(R.id.pushGatewayProfileTag) + val profileTag by bind(R.id.pushGatewayProfileTagValue) val urlTitle by bind(R.id.pushGatewayURL) val url by bind(R.id.pushGatewayURLValue) val appName by bind(R.id.pushGatewayAppNameValue) diff --git a/vector/src/main/res/layout/item_pushgateway.xml b/vector/src/main/res/layout/item_pushgateway.xml index c43f9eea7c..c9a63e3335 100644 --- a/vector/src/main/res/layout/item_pushgateway.xml +++ b/vector/src/main/res/layout/item_pushgateway.xml @@ -125,6 +125,23 @@ android:textStyle="" tools:text="event_id_only" /> + + + +