From 8a19553937ef10be6e86197bb441e3b6738d49f5 Mon Sep 17 00:00:00 2001 From: amitjangid80 Date: Thu, 2 Aug 2018 19:30:13 +0530 Subject: [PATCH] Resolved some bugs. --- .idea/vcs.xml | 6 ++++++ app/src/main/java/com/amit/kotlib/shinebtn/ShineButton.kt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/amit/kotlib/shinebtn/ShineButton.kt b/app/src/main/java/com/amit/kotlib/shinebtn/ShineButton.kt index d886047..68f02b2 100644 --- a/app/src/main/java/com/amit/kotlib/shinebtn/ShineButton.kt +++ b/app/src/main/java/com/amit/kotlib/shinebtn/ShineButton.kt @@ -225,7 +225,7 @@ class ShineButton : PorterShapeImageView { fun showAnim() { if (activity != null) { val rootView = activity!!.findViewById(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 {