Commit 4f84e6b5 authored by Christophe Henry's avatar Christophe Henry

Small fixes on fragment/activity transitions

- Finish LoginActivity after login to prevent vavigate back to it
- Add transition animations between fragments
parent 13b7c02c
......@@ -65,6 +65,7 @@ class LoginActivity: AppCompatActivity() {
private fun startNextActivity() {
startActivity(Intent(this, MainActivity::class.java))
//startActivity(Intent(this, TestActivity::class.java))
finish()
}
private fun attemptLogin() {
......
......@@ -26,7 +26,10 @@
<action
android:id="@+id/action_subscriptionArticlesFragment_to_subscriptionArticlesDetailFragment"
app:destination="@+id/subscriptionArticlesDetailFragment"
/>
app:enterAnim="@anim/nav_default_pop_enter_anim"
app:exitAnim="@anim/nav_default_pop_exit_anim"
app:popEnterAnim="@anim/nav_default_pop_enter_anim"
app:popExitAnim="@anim/nav_default_pop_exit_anim" />
</fragment>
<fragment
android:id="@+id/subscriptionArticlesDetailFragment"
......@@ -40,5 +43,9 @@
</fragment>
<action
android:id="@+id/action_global_subscriptionArticlesFragment"
app:destination="@id/subscriptionArticlesFragment" />
app:destination="@id/subscriptionArticlesFragment"
app:enterAnim="@anim/nav_default_pop_enter_anim"
app:exitAnim="@anim/nav_default_pop_exit_anim"
app:popEnterAnim="@anim/nav_default_pop_enter_anim"
app:popExitAnim="@anim/nav_default_pop_exit_anim" />
</navigation>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment