Skip to content

Commit 016400b

Browse files
committed
Show method returns BubbleShowCase object
1 parent 8a8a701 commit 016400b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bubbleshowcase/src/main/java/com/elconfidencial/bubbleshowcase/BubbleShowCaseBuilder.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class BubbleShowCaseBuilder{
210210
/**
211211
* Build the BubbleShowCase object from the builder one
212212
*/
213-
fun build(): BubbleShowCase {
213+
private fun build(): BubbleShowCase {
214214
if(mIsFirstOfSequence ==null)
215215
mIsFirstOfSequence = true
216216
if(mIsLastOfSequence ==null)
@@ -222,7 +222,7 @@ class BubbleShowCaseBuilder{
222222
/**
223223
* Show the BubbleShowCase using the params added previously
224224
*/
225-
fun show(){
225+
fun show(): BubbleShowCase{
226226
val bubbleShowCase = build()
227227
if (mTargetView != null) {
228228
val targetView = mTargetView!!.get()
@@ -239,6 +239,7 @@ class BubbleShowCaseBuilder{
239239
} else {
240240
bubbleShowCase.show()
241241
}
242+
return bubbleShowCase
242243
}
243244

244245
}

0 commit comments

Comments
 (0)