Skip to content

Commit 72c42d9

Browse files
committed
优化 CustomToast 类中的字段命名
1 parent 6543496 commit 72c42d9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

library/src/main/java/com/hjq/toast/CustomToast.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import android.view.View;
44
import android.widget.TextView;
5-
65
import com.hjq.toast.config.IToast;
76

87
/**
@@ -30,7 +29,7 @@ public abstract class CustomToast implements IToast {
3029
/** 垂直间距 */
3130
private float mVerticalMargin;
3231
/** Toast 动画 */
33-
private int mAnimations = android.R.style.Animation_Toast;
32+
private int mAnimationsId = android.R.style.Animation_Toast;
3433
/** 短吐司显示的时长,参考至 NotificationManagerService.SHORT_DELAY */
3534
private int mShortDuration = 2000;
3635
/** 长吐司显示的时长,参考至 NotificationManagerService.LONG_DELAY */
@@ -116,11 +115,11 @@ public float getVerticalMargin() {
116115
}
117116

118117
public void setAnimationsId(int animationsId) {
119-
mAnimations = animationsId;
118+
mAnimationsId = animationsId;
120119
}
121120

122121
public int getAnimationsId() {
123-
return mAnimations;
122+
return mAnimationsId;
124123
}
125124

126125
public void setShortDuration(int duration) {

0 commit comments

Comments
 (0)