Commit 11b151bf authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Reorder functions.

parent b722c034
...@@ -19,14 +19,6 @@ class AuthenticationNavigator(internal val activity: AuthenticationActivity) { ...@@ -19,14 +19,6 @@ class AuthenticationNavigator(internal val activity: AuthenticationActivity) {
} }
} }
fun toChatList() {
val chatRoom = Intent(activity, MainActivity::class.java).apply {
//TODO any parameter to pass
}
activity.startActivity(chatRoom)
activity.finish()
}
fun toTwoFA(server: String, username: String, password: String) { fun toTwoFA(server: String, username: String, password: String) {
currentServer = server currentServer = server
activity.addFragmentBackStack("twoFAFragment", R.id.fragment_container) { activity.addFragmentBackStack("twoFAFragment", R.id.fragment_container) {
...@@ -40,4 +32,12 @@ class AuthenticationNavigator(internal val activity: AuthenticationActivity) { ...@@ -40,4 +32,12 @@ class AuthenticationNavigator(internal val activity: AuthenticationActivity) {
SignupFragment.newInstance(server) SignupFragment.newInstance(server)
} }
} }
fun toChatList() {
val chatRoom = Intent(activity, MainActivity::class.java).apply {
//TODO any parameter to pass
}
activity.startActivity(chatRoom)
activity.finish()
}
} }
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