File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/com/elconfidencial/bubbleshowcase Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ apply from: 'keystore.gradle'
77ext {
88 groupId = ' com.elconfidencial.bubbleshowcase'
99 artifactId = ' bubbleshowcase'
10- libraryVersion = ' 1.2.1 '
10+ libraryVersion = ' 1.2.2 '
1111}
1212
1313version = libraryVersion
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ class BubbleShowCase(builder: BubbleShowCaseBuilder){
116116 if (isFirstOfSequence){
117117 // Add the foreground layout above the root view
118118 val animation = AnimationUtils .getFadeInAnimation(0 , DURATION_BACKGROUND_ANIMATION )
119- rootView.addView(AnimationUtils .setAnimationToView(foregroundLayoutWithBlur!! , animation))
119+ foregroundLayoutWithBlur?. let { rootView.addView(AnimationUtils .setAnimationToView(foregroundLayoutWithBlur!! , animation)) }
120120 }
121121 }
122122
@@ -379,11 +379,11 @@ class BubbleShowCase(builder: BubbleShowCaseBuilder){
379379 }
380380
381381 private fun getScreenVerticalOffset (): Int {
382- return ScreenUtils .getAxisYpositionOfViewOnScreen(foregroundLayoutWithBlur!! )
382+ return if (foregroundLayoutWithBlur != null ) ScreenUtils .getAxisYpositionOfViewOnScreen(foregroundLayoutWithBlur!! ) else 0
383383 }
384384
385385 private fun getScreenHorizontalOffset (): Int {
386- return ScreenUtils .getAxisXpositionOfViewOnScreen(foregroundLayoutWithBlur!! )
386+ return if (foregroundLayoutWithBlur != null ) ScreenUtils .getAxisXpositionOfViewOnScreen(foregroundLayoutWithBlur!! ) else 0
387387 }
388388
389389 private fun getMessageViewWidthOnTablet (availableSpace : Int ): Int {
You can’t perform that action at this time.
0 commit comments