Added missing animation

This commit is contained in:
Sylvain Berfini 2020-10-21 17:17:17 +02:00
parent c06c90fe1a
commit 7635cad984
4 changed files with 39 additions and 2 deletions

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -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"