Added missing animation
This commit is contained in:
parent
c06c90fe1a
commit
7635cad984
4 changed files with 39 additions and 2 deletions
|
@ -178,7 +178,7 @@ internal fun SideMenuFragment.navigateToAccountSettings(identity: String) {
|
|||
if (!resources.getBoolean(R.bool.isTablet)) {
|
||||
// If not a tablet, navigate directly to account settings fragment
|
||||
val deepLink = "linphone-android://account-settings/$identity"
|
||||
findNavController().navigate(Uri.parse(deepLink))
|
||||
findNavController().navigate(Uri.parse(deepLink), getRightToLeftAnimationNavOptions())
|
||||
} else {
|
||||
// On tablet, to keep the categories list on left side, navigate to settings fragment first
|
||||
val deepLink = "linphone-android://settings/$identity"
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/backgroundColor">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/top_bar"
|
||||
|
|
|
@ -263,6 +263,10 @@
|
|||
android:label="AboutFragment" />
|
||||
<action
|
||||
android:id="@+id/action_global_aboutFragment"
|
||||
app:enterAnim="@anim/enter_right"
|
||||
app:exitAnim="@anim/exit_left"
|
||||
app:popEnterAnim="@anim/enter_left"
|
||||
app:popExitAnim="@anim/exit_right"
|
||||
app:destination="@id/aboutFragment"
|
||||
app:launchSingleTop="true"
|
||||
app:popUpTo="@+id/aboutFragment"
|
||||
|
@ -274,6 +278,10 @@
|
|||
android:label="RecordingsFragment" />
|
||||
<action
|
||||
android:id="@+id/action_global_recordingsFragment"
|
||||
app:enterAnim="@anim/enter_right"
|
||||
app:exitAnim="@anim/exit_left"
|
||||
app:popEnterAnim="@anim/enter_left"
|
||||
app:popExitAnim="@anim/exit_right"
|
||||
app:destination="@id/recordingsFragment"
|
||||
app:launchSingleTop="true"
|
||||
app:popUpTo="@+id/recordingsFragment"
|
||||
|
@ -372,6 +380,10 @@
|
|||
</fragment>
|
||||
<action
|
||||
android:id="@+id/action_global_settingsFragment"
|
||||
app:enterAnim="@anim/enter_right"
|
||||
app:exitAnim="@anim/exit_left"
|
||||
app:popEnterAnim="@anim/enter_left"
|
||||
app:popExitAnim="@anim/exit_right"
|
||||
app:destination="@id/settingsFragment"
|
||||
app:launchSingleTop="true"
|
||||
app:popUpTo="@+id/settingsFragment"
|
||||
|
@ -387,6 +399,10 @@
|
|||
app:argType="string" />
|
||||
<action
|
||||
android:id="@+id/action_accountSettingsFragment_to_phoneAccountLinkingFragment"
|
||||
app:enterAnim="@anim/enter_right"
|
||||
app:exitAnim="@anim/exit_left"
|
||||
app:popEnterAnim="@anim/enter_left"
|
||||
app:popExitAnim="@anim/exit_right"
|
||||
app:destination="@id/phoneAccountLinkingFragment" />
|
||||
<deepLink
|
||||
android:id="@+id/accountSettingsDeepLink"
|
||||
|
@ -435,12 +451,20 @@
|
|||
android:label="TunnelSettingsFragment" />
|
||||
<action
|
||||
android:id="@+id/action_global_masterChatRoomsFragment"
|
||||
app:enterAnim="@anim/enter_right"
|
||||
app:exitAnim="@anim/exit_left"
|
||||
app:popEnterAnim="@anim/enter_left"
|
||||
app:popExitAnim="@anim/exit_right"
|
||||
app:destination="@id/masterChatRoomsFragment"
|
||||
app:launchSingleTop="true"
|
||||
app:popUpTo="@+id/masterChatRoomsFragment"
|
||||
app:popUpToInclusive="true" />
|
||||
<action
|
||||
android:id="@+id/action_global_dialerFragment"
|
||||
app:enterAnim="@anim/enter_right"
|
||||
app:exitAnim="@anim/exit_left"
|
||||
app:popEnterAnim="@anim/enter_left"
|
||||
app:popExitAnim="@anim/exit_right"
|
||||
app:destination="@id/dialerFragment"
|
||||
app:launchSingleTop="true"
|
||||
app:popUpTo="@+id/dialerFragment"
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
app:argType="string" />
|
||||
<action
|
||||
android:id="@+id/action_accountSettingsFragment_to_phoneAccountLinkingFragment"
|
||||
app:enterAnim="@anim/enter_right"
|
||||
app:exitAnim="@anim/exit_left"
|
||||
app:popEnterAnim="@anim/enter_left"
|
||||
app:popExitAnim="@anim/exit_right"
|
||||
app:destination="@id/phoneAccountLinkingFragment" />
|
||||
</fragment>
|
||||
<fragment
|
||||
|
@ -104,6 +108,10 @@
|
|||
android:label="PhoneAccountLinkingFragment" >
|
||||
<action
|
||||
android:id="@+id/action_phoneAccountLinkingFragment_to_phoneAccountValidationFragment"
|
||||
app:enterAnim="@anim/enter_right"
|
||||
app:exitAnim="@anim/exit_left"
|
||||
app:popEnterAnim="@anim/enter_left"
|
||||
app:popExitAnim="@anim/exit_right"
|
||||
app:destination="@id/phoneAccountValidationFragment" />
|
||||
<argument
|
||||
android:name="Username"
|
||||
|
@ -124,6 +132,10 @@
|
|||
android:label="PhoneAccountValidationFragment" >
|
||||
<action
|
||||
android:id="@+id/action_phoneAccountValidationFragment_to_accountSettingsFragment"
|
||||
app:enterAnim="@anim/enter_left"
|
||||
app:exitAnim="@anim/exit_right"
|
||||
app:popEnterAnim="@anim/enter_right"
|
||||
app:popExitAnim="@anim/exit_left"
|
||||
app:destination="@id/accountSettingsFragment"
|
||||
app:launchSingleTop="true"
|
||||
app:popUpTo="@id/accountSettingsFragment"
|
||||
|
|
Loading…
Reference in a new issue