@@ -22,7 +22,7 @@ public interface StatusAction {
2222 /**
2323 * 获取状态布局
2424 */
25- StatusLayout getStatusLayout ();
25+ StatusLayout acquireStatusLayout ();
2626
2727 /**
2828 * 显示加载中
@@ -32,7 +32,7 @@ default void showLoading() {
3232 }
3333
3434 default void showLoading (@ RawRes int id ) {
35- StatusLayout layout = getStatusLayout ();
35+ StatusLayout layout = acquireStatusLayout ();
3636 if (layout == null ) {
3737 return ;
3838 }
@@ -46,7 +46,7 @@ default void showLoading(@RawRes int id) {
4646 * 显示加载完成
4747 */
4848 default void showComplete () {
49- StatusLayout layout = getStatusLayout ();
49+ StatusLayout layout = acquireStatusLayout ();
5050 if (layout == null || !layout .isShow ()) {
5151 return ;
5252 }
@@ -64,7 +64,7 @@ default void showEmpty() {
6464 * 显示错误提示
6565 */
6666 default void showError (StatusLayout .OnRetryListener listener ) {
67- StatusLayout layout = getStatusLayout ();
67+ StatusLayout layout = acquireStatusLayout ();
6868 if (layout == null ) {
6969 return ;
7070 }
@@ -85,7 +85,7 @@ default void showError(StatusLayout.OnRetryListener listener) {
8585 * 显示自定义提示
8686 */
8787 default void showLayout (@ DrawableRes int drawableId , @ StringRes int stringId , StatusLayout .OnRetryListener listener ) {
88- StatusLayout layout = getStatusLayout ();
88+ StatusLayout layout = acquireStatusLayout ();
8989 if (layout == null ) {
9090 return ;
9191 }
@@ -94,7 +94,7 @@ default void showLayout(@DrawableRes int drawableId, @StringRes int stringId, St
9494 }
9595
9696 default void showLayout (Drawable drawable , CharSequence hint , StatusLayout .OnRetryListener listener ) {
97- StatusLayout layout = getStatusLayout ();
97+ StatusLayout layout = acquireStatusLayout ();
9898 if (layout == null ) {
9999 return ;
100100 }
0 commit comments