mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Adds new pusher fields to Notification Targets screen
This commit is contained in:
parent
52171ef748
commit
f724751c86
@ -1697,13 +1697,15 @@
|
||||
<string name="settings_push_rules_no_rules">No push rules defined</string>
|
||||
<string name="settings_push_gateway_no_pushers">No registered push gateways</string>
|
||||
|
||||
<string name="push_gateway_item_app_id">app_id:</string>
|
||||
<string name="push_gateway_item_push_key">push_key:</string>
|
||||
<string name="push_gateway_item_app_display_name">app_display_name:</string>
|
||||
<string name="push_gateway_item_device_name">session_name:</string>
|
||||
<string name="push_gateway_item_app_id">App ID:</string>
|
||||
<string name="push_gateway_item_push_key">Push Key:</string>
|
||||
<string name="push_gateway_item_app_display_name">App Display Name:</string>
|
||||
<string name="push_gateway_item_device_name">Device Display Name:</string>
|
||||
<string name="push_gateway_item_device_id">Device ID:</string>
|
||||
<string name="push_gateway_item_url">Url:</string>
|
||||
<string name="push_gateway_item_format">Format:</string>
|
||||
<string name="push_gateway_item_profile_tag">Profile tag:</string>
|
||||
<string name="push_gateway_item_enabled">Enabled:</string>
|
||||
|
||||
<string name="preference_voice_and_video">Voice & Video</string>
|
||||
<string name="preference_root_help_about">Help & About</string>
|
||||
|
@ -50,6 +50,8 @@ abstract class PushGatewayItem : VectorEpoxyModel<PushGatewayItem.Holder>(R.layo
|
||||
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.deviceId.text = pusher.deviceId ?: "null"
|
||||
holder.enabled.text = pusher.enabled.toString()
|
||||
holder.removeButton.setOnClickListener {
|
||||
interactions.onRemovePushTapped(pusher)
|
||||
}
|
||||
@ -59,10 +61,12 @@ abstract class PushGatewayItem : VectorEpoxyModel<PushGatewayItem.Holder>(R.layo
|
||||
val kind by bind<TextView>(R.id.pushGatewayKind)
|
||||
val pushKey by bind<TextView>(R.id.pushGatewayKeyValue)
|
||||
val deviceName by bind<TextView>(R.id.pushGatewayDeviceNameValue)
|
||||
val deviceId by bind<TextView>(R.id.pushGatewayDeviceIdValue)
|
||||
val formatTitle by bind<View>(R.id.pushGatewayFormat)
|
||||
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 enabled by bind<TextView>(R.id.pushGatewayEnabledValue)
|
||||
val urlTitle by bind<View>(R.id.pushGatewayURL)
|
||||
val url by bind<TextView>(R.id.pushGatewayURLValue)
|
||||
val appName by bind<TextView>(R.id.pushGatewayAppNameValue)
|
||||
|
@ -83,6 +83,23 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
tools:text="Pixel 6" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pushGatewayDeviceId"
|
||||
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_device_id"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pushGatewayDeviceIdValue"
|
||||
style="@style/Widget.Vector.TextView.Body"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
tools:text="EBMDOLFJD" />
|
||||
|
||||
<TextView
|
||||
@ -135,6 +152,23 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pushGatewayEnabled"
|
||||
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_enabled"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pushGatewayEnabledValue"
|
||||
style="@style/Widget.Vector.TextView.Body"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
tools:text="true" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/pushGatewayDeleteButton"
|
||||
android:layout_width="wrap_content"
|
||||
|
Loading…
Reference in New Issue
Block a user