mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-08 16:18:53 +01:00
Expose pusher profile tag in advanced settings
Signed-off-by: Johannes Marbach <johannesm@element.io>
This commit is contained in:
parent
2ab2af90e9
commit
ec073552bd
2
changelog.d/6369.feature
Normal file
2
changelog.d/6369.feature
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Expose pusher profile tag in advanced settings
|
||||||
|
|
@ -48,6 +48,7 @@ abstract class PushGatewayItem : EpoxyModelWithHolder<PushGatewayItem.Holder>()
|
|||||||
holder.appName.text = pusher.appDisplayName
|
holder.appName.text = pusher.appDisplayName
|
||||||
holder.url.setTextOrHide(pusher.data.url, hideWhenBlank = true, holder.urlTitle)
|
holder.url.setTextOrHide(pusher.data.url, hideWhenBlank = true, holder.urlTitle)
|
||||||
holder.format.setTextOrHide(pusher.data.format, hideWhenBlank = true, holder.formatTitle)
|
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.deviceName.text = pusher.deviceDisplayName
|
||||||
holder.removeButton.setOnClickListener {
|
holder.removeButton.setOnClickListener {
|
||||||
interactions.onRemovePushTapped(pusher)
|
interactions.onRemovePushTapped(pusher)
|
||||||
@ -60,6 +61,8 @@ abstract class PushGatewayItem : EpoxyModelWithHolder<PushGatewayItem.Holder>()
|
|||||||
val deviceName by bind<TextView>(R.id.pushGatewayDeviceNameValue)
|
val deviceName by bind<TextView>(R.id.pushGatewayDeviceNameValue)
|
||||||
val formatTitle by bind<View>(R.id.pushGatewayFormat)
|
val formatTitle by bind<View>(R.id.pushGatewayFormat)
|
||||||
val format by bind<TextView>(R.id.pushGatewayFormatValue)
|
val format by bind<TextView>(R.id.pushGatewayFormatValue)
|
||||||
|
val profileTagTitle by bind<TextView>(R.id.pushGatewayProfileTag)
|
||||||
|
val profileTag by bind<TextView>(R.id.pushGatewayProfileTagValue)
|
||||||
val urlTitle by bind<View>(R.id.pushGatewayURL)
|
val urlTitle by bind<View>(R.id.pushGatewayURL)
|
||||||
val url by bind<TextView>(R.id.pushGatewayURLValue)
|
val url by bind<TextView>(R.id.pushGatewayURLValue)
|
||||||
val appName by bind<TextView>(R.id.pushGatewayAppNameValue)
|
val appName by bind<TextView>(R.id.pushGatewayAppNameValue)
|
||||||
|
@ -125,6 +125,23 @@
|
|||||||
android:textStyle=""
|
android:textStyle=""
|
||||||
tools:text="event_id_only" />
|
tools:text="event_id_only" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/pushGatewayProfileTag"
|
||||||
|
style="@style/Widget.Vector.TextView.Body"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="4dp"
|
||||||
|
android:text="@string/push_gateway_item_profile_tag"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/pushGatewayProfileTagValue"
|
||||||
|
style="@style/Widget.Vector.TextView.Body"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="16dp"
|
||||||
|
android:textStyle="" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/pushGatewayDeleteButton"
|
android:id="@+id/pushGatewayDeleteButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -1657,6 +1657,7 @@
|
|||||||
<string name="push_gateway_item_device_name">session_name:</string>
|
<string name="push_gateway_item_device_name">session_name:</string>
|
||||||
<string name="push_gateway_item_url">Url:</string>
|
<string name="push_gateway_item_url">Url:</string>
|
||||||
<string name="push_gateway_item_format">Format:</string>
|
<string name="push_gateway_item_format">Format:</string>
|
||||||
|
<string name="push_gateway_item_profile_tag">Profile tag:</string>
|
||||||
|
|
||||||
<string name="preference_voice_and_video">Voice & Video</string>
|
<string name="preference_voice_and_video">Voice & Video</string>
|
||||||
<string name="preference_root_help_about">Help & About</string>
|
<string name="preference_root_help_about">Help & About</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user