mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 03:40:56 +01:00
Refactor conversation settings screens into a single fragment with new UI.
This commit is contained in:
committed by
Cody Henthorne
parent
f19033a7a2
commit
da2ee33dff
102
app/src/main/res/navigation/conversation_settings.xml
Normal file
102
app/src/main/res/navigation/conversation_settings.xml
Normal file
@@ -0,0 +1,102 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/conversation_settings"
|
||||
app:startDestination="@id/conversationSettingsFragment">
|
||||
|
||||
<fragment
|
||||
android:id="@+id/conversationSettingsFragment"
|
||||
android:name="org.thoughtcrime.securesms.components.settings.conversation.ConversationSettingsFragment"
|
||||
android:label="app_settings_fragment"
|
||||
tools:layout="@layout/dsl_settings_fragment">
|
||||
|
||||
<action
|
||||
android:id="@+id/action_conversationSettingsFragment_to_app_settings_expire_timer"
|
||||
app:destination="@id/app_settings_expire_timer"
|
||||
app:enterAnim="@anim/fragment_open_enter"
|
||||
app:exitAnim="@anim/fragment_open_exit"
|
||||
app:popEnterAnim="@anim/fragment_close_enter"
|
||||
app:popExitAnim="@anim/fragment_close_exit">
|
||||
|
||||
<argument
|
||||
android:name="recipient_id"
|
||||
android:defaultValue="@null"
|
||||
app:argType="org.thoughtcrime.securesms.recipients.RecipientId"
|
||||
app:nullable="true" />
|
||||
|
||||
<argument
|
||||
android:name="for_result_mode"
|
||||
android:defaultValue="false"
|
||||
app:argType="boolean" />
|
||||
|
||||
<argument
|
||||
android:name="initial_value"
|
||||
android:defaultValue="@null"
|
||||
app:nullable="true"
|
||||
app:argType="java.lang.Integer" />
|
||||
</action>
|
||||
|
||||
<argument
|
||||
android:name="recipient_id"
|
||||
app:argType="org.thoughtcrime.securesms.recipients.RecipientId"
|
||||
app:nullable="true" />
|
||||
|
||||
<argument
|
||||
android:name="group_id"
|
||||
app:argType="android.os.Parcelable"
|
||||
app:nullable="true" />
|
||||
|
||||
<action
|
||||
android:id="@+id/action_conversationSettingsFragment_to_soundsAndNotificationsSettingsFragment"
|
||||
app:destination="@id/soundsAndNotificationsSettingsFragment"
|
||||
app:enterAnim="@anim/fragment_open_enter"
|
||||
app:exitAnim="@anim/fragment_open_exit"
|
||||
app:popEnterAnim="@anim/fragment_close_enter"
|
||||
app:popExitAnim="@anim/fragment_close_exit">
|
||||
|
||||
<argument
|
||||
android:name="recipient_id"
|
||||
app:argType="org.thoughtcrime.securesms.recipients.RecipientId" />
|
||||
|
||||
</action>
|
||||
|
||||
<action
|
||||
android:id="@+id/action_conversationSettingsFragment_to_permissionsSettingsFragment"
|
||||
app:destination="@id/permissionsSettingsFragment"
|
||||
app:enterAnim="@anim/fragment_open_enter"
|
||||
app:exitAnim="@anim/fragment_open_exit"
|
||||
app:popEnterAnim="@anim/fragment_close_enter"
|
||||
app:popExitAnim="@anim/fragment_close_exit">
|
||||
|
||||
<argument
|
||||
android:name="group_id"
|
||||
app:argType="android.os.Parcelable"
|
||||
app:nullable="true" />
|
||||
</action>
|
||||
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
android:id="@+id/soundsAndNotificationsSettingsFragment"
|
||||
android:name="org.thoughtcrime.securesms.components.settings.conversation.sounds.SoundsAndNotificationsSettingsFragment">
|
||||
|
||||
<argument
|
||||
android:name="recipient_id"
|
||||
app:argType="org.thoughtcrime.securesms.recipients.RecipientId" />
|
||||
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
android:id="@+id/permissionsSettingsFragment"
|
||||
android:name="org.thoughtcrime.securesms.components.settings.conversation.permissions.PermissionsSettingsFragment">
|
||||
|
||||
<argument
|
||||
android:name="group_id"
|
||||
app:argType="android.os.Parcelable"
|
||||
app:nullable="true" />
|
||||
</fragment>
|
||||
|
||||
<include app:graph="@navigation/app_settings_expire_timer" />
|
||||
|
||||
</navigation>
|
||||
Reference in New Issue
Block a user