Commit 9d201a4dbb651c8edee7a166a776537cba45fb03
1 parent
9be4582669
Exists in
master
避免编译错误
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
libs/common/src/main/java/com/prws/common/base/BaseActivity.java
| ... | ... | @@ -336,14 +336,14 @@ public abstract class BaseActivity<P extends BasePresenter, CONTRACT> extends Ap |
| 336 | 336 | |
| 337 | 337 | if (!fragmentList.contains(fragment)) { |
| 338 | 338 | fragmentList.add(fragment); |
| 339 | - fragmentTransaction.add(id, fragment, fragment.getClass().getSimpleName()).setMaxLifecycle(fragment, Lifecycle.State.RESUMED); | |
| 339 | + fragmentTransaction.add(id, fragment, fragment.getClass().getSimpleName()); | |
| 340 | 340 | } |
| 341 | 341 | |
| 342 | - fragmentTransaction.show(fragment).setMaxLifecycle(fragment, Lifecycle.State.RESUMED); | |
| 342 | + fragmentTransaction.show(fragment); | |
| 343 | 343 | |
| 344 | 344 | for (Fragment fragment1 : fragmentList) { |
| 345 | 345 | if (fragment1 != fragment) { |
| 346 | - fragmentTransaction.hide(fragment1).setMaxLifecycle(fragment1, Lifecycle.State.STARTED); | |
| 346 | + fragmentTransaction.hide(fragment1); | |
| 347 | 347 | } |
| 348 | 348 | } |
| 349 | 349 | ... | ... |