Skip to content

Commit 4b6d587

Browse files
committed
Add startDontHideSelf(fragment, launchMode) - #882
1 parent 1800cc7 commit 4b6d587

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fragmentation_core/src/main/java/me/yokeyword/fragmentation/ExtraTransaction.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ public abstract ExtraTransaction setCustomAnimations(@AnimatorRes @AnimRes int t
6868

6969
public abstract void startDontHideSelf(ISupportFragment toFragment);
7070

71+
public abstract void startDontHideSelf(ISupportFragment toFragment, @ISupportFragment.LaunchMode int launchMode);
72+
7173
public abstract void start(ISupportFragment toFragment, @ISupportFragment.LaunchMode int launchMode);
7274

7375
public abstract void startForResult(ISupportFragment toFragment, int requestCode);
@@ -241,6 +243,12 @@ public void startDontHideSelf(ISupportFragment toFragment) {
241243
mTransactionDelegate.dispatchStartTransaction(getFragmentManager(), mSupportF, toFragment, 0, ISupportFragment.STANDARD, TransactionDelegate.TYPE_ADD_WITHOUT_HIDE);
242244
}
243245

246+
@Override
247+
public void startDontHideSelf(ISupportFragment toFragment, @ISupportFragment.LaunchMode int launchMode) {
248+
toFragment.getSupportDelegate().mTransactionRecord = mRecord;
249+
mTransactionDelegate.dispatchStartTransaction(getFragmentManager(), mSupportF, toFragment, 0, launchMode, TransactionDelegate.TYPE_ADD_WITHOUT_HIDE);
250+
}
251+
244252
@Override
245253
public void start(ISupportFragment toFragment, @ISupportFragment.LaunchMode int launchMode) {
246254
toFragment.getSupportDelegate().mTransactionRecord = mRecord;

0 commit comments

Comments
 (0)