Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
weikaiyun committed Sep 11, 2020
1 parent f8bb73b commit 6627ca5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,7 @@ private ISupportFragment getChildTopFragment() {
}

public void setBackground(View view) {
if ((mFragment.getTag() != null && mFragment.getTag().startsWith("android:switcher:"))
|| view.getBackground() != null) {
if (view.getBackground() != null) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,6 @@ private ISupportFragment getTopFragmentForStart(ISupportFragment from, FragmentM
if (from == null) {
top = SupportHelper.getTopFragment(fm);
} else {
if (from.getSupportDelegate().mContainerId == 0) {
Fragment fromF = (Fragment) from;
if (fromF.getTag() != null && !fromF.getTag().startsWith("android:switcher:")) {
throw new IllegalStateException("Can't find container, please call loadRootFragment() first!");
}
}
top = SupportHelper.getTopFragment(fm, from.getSupportDelegate().mContainerId);
}
return top;
Expand Down

0 comments on commit 6627ca5

Please sign in to comment.