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..afc40e5b7a 100644 --- a/vector/src/main/res/layout/item_pushgateway.xml +++ b/vector/src/main/res/layout/item_pushgateway.xml @@ -32,7 +32,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="16dp" - android:textStyle="" tools:text="im.vector.app.android" /> + + + +