Skip to content

Commit

Permalink
Resolved some bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
amitjangid80 committed Aug 2, 2018
1 parent a1b995d commit 8a19553
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/src/main/java/com/amit/kotlib/shinebtn/ShineButton.kt
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class ShineButton : PorterShapeImageView {
fun showAnim() {
if (activity != null) {
val rootView = activity!!.findViewById<View>(Window.ID_ANDROID_CONTENT) as ViewGroup
shineView = ShineView(activity, this, shineParams)
shineView = ShineView(activity!!, this, shineParams)
rootView.addView(shineView, ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT))
doShareAnim()
} else {
Expand Down

0 comments on commit 8a19553

Please sign in to comment.