File tree 2 files changed +11
-4
lines changed
app/src/main/kotlin/com/bff/wespot
core/navigation/src/main/kotlin/com/bff/wespot/navigation
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.bff.wespot
2
2
3
3
import android.content.Context
4
4
import android.content.Intent
5
+ import com.bff.wespot.auth.AuthActivity
5
6
import com.bff.wespot.navigation.Navigator
6
7
import com.bff.wespot.navigation.util.buildIntent
7
8
import javax.inject.Inject
@@ -14,4 +15,10 @@ class NavigatorImpl @Inject constructor() : Navigator {
14
15
intent.flags = Intent .FLAG_ACTIVITY_NEW_TASK or Intent .FLAG_ACTIVITY_CLEAR_TASK
15
16
return intent
16
17
}
18
+
19
+ override fun navigateToAuth (context : Context ): Intent {
20
+ val intent = context.buildIntent<AuthActivity >()
21
+ intent.flags = Intent .FLAG_ACTIVITY_NEW_TASK or Intent .FLAG_ACTIVITY_CLEAR_TASK
22
+ return intent
23
+ }
17
24
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import android.content.Context
4
4
import android.content.Intent
5
5
6
6
interface Navigator {
7
- fun navigateToMain (
8
- context : Context
9
- ) : Intent
10
- }
7
+ fun navigateToMain (context : Context ) : Intent
8
+
9
+ fun navigateToAuth ( context : Context ) : Intent
10
+ }
You can’t perform that action at this time.
0 commit comments