Skip to content

Commit 0f7d354

Browse files
author
roman_tcaregorodtcev
committed
base intent builder was updated
1 parent 0b1651c commit 0f7d354

3 files changed

Lines changed: 90 additions & 85 deletions

File tree

core/src/main/java/com/omega_r/libs/omegaintentbuilder/builders/ActivityIntentBuilder.kt

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,21 @@ import com.omega_r.libs.omegaintentbuilder.interfaces.IntentHandler
1616
import com.omega_r.libs.omegaintentbuilder.handlers.ActivityIntentHandler
1717
import 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

Comments
 (0)