Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a640976

Browse files
committed
Call kotlin function in magic button view class
1 parent cf6b3d1 commit a640976

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

magic/src/main/java/br/com/bloder/magic/view/MagicButton.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import android.widget.LinearLayout;
1414
import android.widget.TextView;
1515

16-
import br.com.bloder.magic.Magic;
16+
import br.com.bloder.magic.MagicKt;
1717
import br.com.bloder.magic.R;
1818

1919
/**
@@ -98,7 +98,7 @@ public void onClick(View v) {
9898
text.setVisibility(GONE);
9999
if(onClickListener != null) onClickListener.onClick(button);
100100
}
101-
new Magic().doWith(v);
101+
MagicKt.doWith(v);
102102
}
103103
});
104104
}

0 commit comments

Comments
 (0)