Fixed navigation issue after saving changes in contact editor
This commit is contained in:
parent
2dd034cfbd
commit
400e64e18e
3 changed files with 15 additions and 3 deletions
|
@ -445,8 +445,13 @@ internal fun MasterContactsFragment.navigateToContactEditor(sipUriToAdd: String?
|
||||||
}
|
}
|
||||||
|
|
||||||
internal fun ContactEditorFragment.navigateToContact(contact: NativeContact) {
|
internal fun ContactEditorFragment.navigateToContact(contact: NativeContact) {
|
||||||
val deepLink = "linphone-android://contact/view/${contact.nativeId}"
|
val bundle = Bundle()
|
||||||
findMasterNavController().navigate(Uri.parse(deepLink), getRightToLeftAnimationNavOptions())
|
bundle.putString("id", contact.nativeId)
|
||||||
|
findNavController().navigate(
|
||||||
|
R.id.action_contactEditorFragment_to_detailContactFragment,
|
||||||
|
bundle,
|
||||||
|
getRightToLeftAnimationNavOptions(R.id.detailContactFragment, true)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
internal fun DetailContactFragment.navigateToChatRoom(args: Bundle?) {
|
internal fun DetailContactFragment.navigateToChatRoom(args: Bundle?) {
|
||||||
|
|
|
@ -24,6 +24,9 @@
|
||||||
android:name="SipUri"
|
android:name="SipUri"
|
||||||
app:argType="string"
|
app:argType="string"
|
||||||
app:nullable="true" />
|
app:nullable="true" />
|
||||||
|
<action
|
||||||
|
android:id="@+id/action_contactEditorFragment_to_detailContactFragment"
|
||||||
|
app:destination="@id/detailContactFragment" />
|
||||||
</fragment>
|
</fragment>
|
||||||
|
|
||||||
<fragment
|
<fragment
|
||||||
|
|
|
@ -25,6 +25,10 @@
|
||||||
android:id="@+id/contactEditorFragment"
|
android:id="@+id/contactEditorFragment"
|
||||||
android:name="org.linphone.activities.main.contact.fragments.ContactEditorFragment"
|
android:name="org.linphone.activities.main.contact.fragments.ContactEditorFragment"
|
||||||
tools:layout="@layout/contact_editor_fragment"
|
tools:layout="@layout/contact_editor_fragment"
|
||||||
android:label="ContactEditorFragment" />
|
android:label="ContactEditorFragment" >
|
||||||
|
<action
|
||||||
|
android:id="@+id/action_contactEditorFragment_to_detailContactFragment"
|
||||||
|
app:destination="@id/detailContactFragment" />
|
||||||
|
</fragment>
|
||||||
|
|
||||||
</navigation>
|
</navigation>
|
Loading…
Reference in a new issue