Fixed crash when navigating into Account details fragment from side menu
This commit is contained in:
parent
8c6758c4b8
commit
c57937409f
1 changed files with 1 additions and 7 deletions
|
@ -688,13 +688,7 @@ internal fun PhoneAccountLinkingFragment.navigateToPhoneAccountValidation(args:
|
|||
/* Side menu related */
|
||||
|
||||
internal fun SideMenuFragment.navigateToAccountSettings(identity: String) {
|
||||
val deepLink = if (!resources.getBoolean(R.bool.isTablet)) {
|
||||
// If not a tablet, navigate directly to account settings fragment
|
||||
"linphone-android://account-settings/$identity"
|
||||
} else {
|
||||
// On tablet, to keep the categories list on left side, navigate to settings fragment first
|
||||
"linphone-android://settings/$identity"
|
||||
}
|
||||
val deepLink = "linphone-android://settings/$identity"
|
||||
findNavController().navigate(Uri.parse(deepLink), getRightToLeftAnimationNavOptions())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue