Skip to content

Commit d91dffc

Browse files
committed
Fix #778, fix afterTransactionRunnable is called before popTo()
1 parent 327de61 commit d91dffc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,12 @@ void popTo(final String targetFragmentTag, final boolean includeTargetFragment,
238238
@Override
239239
public void run() {
240240
doPopTo(targetFragmentTag, includeTargetFragment, afterPopTransactionRunnable, fm, popAnim);
241+
242+
if (afterPopTransactionRunnable != null) {
243+
afterPopTransactionRunnable.run();
244+
}
241245
}
242246
});
243-
244-
if (afterPopTransactionRunnable != null) {
245-
afterPopTransactionRunnable.run();
246-
}
247247
}
248248

249249
/**

0 commit comments

Comments
 (0)