Skip to content

Commit dba5649

Browse files
committed
update comments docs
1 parent 4a8907f commit dba5649

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

multistatelayout/src/main/java/cn/refactor/multistatelayout/MultiStateLayout.java

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public View getNetworkErrorView() {
324324
}
325325

326326
/**
327-
* Open/close optional animation
327+
* open/close optional animation
328328
* @param animEnable open/close
329329
*/
330330
@SuppressWarnings("unused")
@@ -333,7 +333,7 @@ public void setAnimEnable(boolean animEnable) {
333333
}
334334

335335
/**
336-
* Get animation status
336+
* get animation status
337337
* @return enable
338338
*/
339339
@SuppressWarnings("unused")
@@ -342,7 +342,7 @@ public boolean isAnimEnable() {
342342
}
343343

344344
/**
345-
* Set animation duration
345+
* set animation duration
346346
* @param duration duration
347347
*/
348348
@SuppressWarnings("unused")
@@ -351,7 +351,7 @@ public void setAnimDuration(int duration) {
351351
}
352352

353353
/**
354-
* Get animation duration
354+
* get animation duration
355355
*/
356356
@SuppressWarnings("unused")
357357
public int getAnimDuration() {
@@ -539,10 +539,18 @@ private int getCommonLayoutResIdByState(@State int state) {
539539
return 0;
540540
}
541541

542+
/**
543+
* get anim status from common settings
544+
* @return animEnable
545+
*/
542546
private boolean isCommonAnimEnable() {
543547
return mCommonConfiguration != null && mCommonConfiguration.isAnimEnable();
544548
}
545549

550+
/**
551+
* get anim duration from common settings
552+
* @return animDuration
553+
*/
546554
private int getCommonAnimDuration() {
547555
return mCommonConfiguration == null ? DEFAULT_ANIM_DURATION : mCommonConfiguration.getAnimDuration();
548556
}

0 commit comments

Comments
 (0)