Skip to content

Commit

Permalink
refactor: deprecate isShow, add isShowing
Browse files Browse the repository at this point in the history
  • Loading branch information
qii committed Feb 4, 2020
1 parent a11316c commit 0b19b65
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -294,14 +294,22 @@ public final boolean isAdded(@NonNull Scene scene) {
return this.mGroupSceneManager.findByScene(scene) != null;
}

public final boolean isShow(@NonNull Scene scene) {
public final boolean isShowing(@NonNull Scene scene) {
GroupRecord record = this.mGroupSceneManager.findByScene(scene);
if (record == null) {
return false;
}
return !record.isHidden;
}

/**
* use {@link #isShowing(Scene)} instead
*/
@Deprecated
public final boolean isShow(@NonNull Scene scene) {
return isShowing(scene);
}

@NonNull
final ViewGroup findContainerById(int viewId) {
ViewGroup viewGroup = (ViewGroup) getView().findViewById(viewId);
Expand Down

0 comments on commit 0b19b65

Please sign in to comment.