@@ -16,19 +16,21 @@ import com.omega_r.libs.omegaintentbuilder.interfaces.IntentHandler
1616import com.omega_r.libs.omegaintentbuilder.handlers.ActivityIntentHandler
1717import com.omega_r.libs.omegaintentbuilder.handlers.ContextIntentHandler
1818
19- class ActivityIntentBuilder <T : Activity > (private val context : Context ,
20- activity : Class <T >): BaseIntentBuilder<T>(context, activity), IntentHandler {
19+ class ActivityIntentBuilder <T : Activity >(
20+ private val context : Context ,
21+ activity : Class <T >
22+ ) : BaseIntentBuilder<ActivityIntentBuilder<T>, T>(context, activity), IntentHandler {
2123
22- override fun createIntentHandler (): ContextIntentHandler {
23- return ContextIntentHandler (context, createIntent())
24- }
24+ override fun createIntentHandler (): ContextIntentHandler {
25+ return ContextIntentHandler (context, createIntent())
26+ }
2527
26- override fun createIntentHandler (activity : Activity ): ActivityIntentHandler {
27- return ActivityIntentHandler (activity, createIntent())
28- }
28+ override fun createIntentHandler (activity : Activity ): ActivityIntentHandler {
29+ return ActivityIntentHandler (activity, createIntent())
30+ }
2931
30- override fun startActivity () {
31- createIntentHandler().startActivity()
32- }
32+ override fun startActivity () {
33+ createIntentHandler().startActivity()
34+ }
3335
3436}
0 commit comments