Skip to content

Commit 1afb55b

Browse files
committed
made changes to method naming
1 parent 63543c4 commit 1afb55b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/src/main/java/com/like/example/MainActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected void onCreate(Bundle savedInstanceState) {
5050
public void usingCustomIcons() {
5151

5252
//shown when the button is in its default state or when unLiked.
53-
smileButton.setUnLikeDrawable(new BitmapDrawable(getResources(), new IconicsDrawable(this, CommunityMaterial.Icon.cmd_emoticon).colorRes(android.R.color.darker_gray).sizeDp(25).toBitmap()));
53+
smileButton.setUnlikeDrawable(new BitmapDrawable(getResources(), new IconicsDrawable(this, CommunityMaterial.Icon.cmd_emoticon).colorRes(android.R.color.darker_gray).sizeDp(25).toBitmap()));
5454

5555
//shown when the button is liked!
5656
smileButton.setLikeDrawable(new BitmapDrawable(getResources(), new IconicsDrawable(this, CommunityMaterial.Icon.cmd_emoticon).colorRes(android.R.color.holo_purple).sizeDp(25).toBitmap()));

likebutton/src/main/java/com/like/LikeButton.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private void init(Context context, AttributeSet attrs, int defStyle) {
8989
unLikeDrawable = array.getDrawable(R.styleable.LikeButton_unlike_drawable);
9090

9191
if(unLikeDrawable !=null)
92-
setUnLikeDrawable(unLikeDrawable);
92+
setUnlikeDrawable(unLikeDrawable);
9393

9494
if (iconType != null)
9595
if (!iconType.isEmpty())
@@ -292,7 +292,7 @@ public void setUnlikeDrawableRes(@DrawableRes int resId) {
292292
* This drawable will be shown when the button is in on unLiked state.
293293
* @param unLikeDrawable
294294
*/
295-
public void setUnLikeDrawable(Drawable unLikeDrawable) {
295+
public void setUnlikeDrawable(Drawable unLikeDrawable) {
296296

297297
this.unLikeDrawable = unLikeDrawable;
298298

0 commit comments

Comments
 (0)