This commit is contained in:
wangcongtao
2020-06-10 19:32:27 +08:00
parent 1faef8ed75
commit b92b4d124f
4 changed files with 20 additions and 2 deletions

View File

@@ -69,6 +69,10 @@ public class FragmentStack {
return;
}
if ( mFragmentManager == null ) {
return;
}
FragmentTransaction mFragmentTransaction = mFragmentManager.beginTransaction();
if ( mCurrentFragment != null ) {
@@ -100,6 +104,9 @@ public class FragmentStack {
invokeCallback();
return;
}
if ( mFragmentManager == null ) {
return;
}
FragmentTransaction mFragmentTransaction = mFragmentManager.beginTransaction();
@@ -163,6 +170,10 @@ public class FragmentStack {
public void clearAll() {
if ( mFragmentManager == null ) {
return;
}
if ( mFragmentStack.isEmpty() ) {
invokeCallback();
return;