Skip to content

Commit

Permalink
update 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ittianyu committed Oct 8, 2018
1 parent b5be1fb commit 8650d37
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,21 @@ private void updateWidget() {
case Content: {
// 如果不缓存 或者 content == null 时,都直接调用 render 去创建一个新的
if (!cache() || content == null)
content = renderLoading();
content = renderContent();
frameWidget.addChild(content);
break;
}
case Empty: {
// 如果不缓存 或者 empty == null 时,都直接调用 render 去创建一个新的
if (!cache() || empty == null)
empty = renderLoading();
empty = renderEmpty();
frameWidget.addChild(empty);
break;
}
case Error: {
// 如果不缓存 或者 error == null 时,都直接调用 render 去创建一个新的
if (!cache() || error == null)
error = renderLoading();
error = renderError();
frameWidget.addChild(error);
break;
}
Expand Down

0 comments on commit 8650d37

Please sign in to comment.