Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
weikaiyun committed Sep 21, 2020
1 parent f2e00d1 commit 1e2ade7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ public void onResume() {
}

if (!isHidden()) {
getSupportDelegate().getVisibleDelegate().setVisible(true);
onVisible();
}
}

@Override
public void onPause() {
super.onPause();
getSupportDelegate().getVisibleDelegate().setVisible(false);
onInvisible();
}

Expand All @@ -79,11 +81,11 @@ public void lazyInit() {
}

public void onVisible() {
getSupportDelegate().getVisibleDelegate().setVisible(true);

}

public void onInvisible() {
getSupportDelegate().getVisibleDelegate().setVisible(false);

}

@Override
Expand Down

0 comments on commit 1e2ade7

Please sign in to comment.