Skip to content

Commit b66a4eb

Browse files
committed
fix #960 queue exceptions
1 parent 2f6d92d commit b66a4eb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

fragmentation_core/src/main/java/me/yokeyword/fragmentation/queue/Action.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
public abstract class Action {
10-
public static final int BUFFER_TIME = 60;
10+
public static final long DEFAULT_POP_TIME = 300L;
1111

1212
public static final int ACTION_NORMAL = 0;
1313
public static final int ACTION_POP = 1;

fragmentation_core/src/main/java/me/yokeyword/fragmentation/queue/ActionQueue.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ private void handleAction() {
5858
private void executeNextAction(Action action) {
5959
if (action.action == Action.ACTION_POP) {
6060
ISupportFragment top = SupportHelper.getBackStackTopFragment(action.fragmentManager);
61-
if (top == null) return;
62-
action.duration = top.getSupportDelegate().getExitAnimDuration();
61+
action.duration = top == null ? Action.DEFAULT_POP_TIME : top.getSupportDelegate().getExitAnimDuration();
6362
}
6463

6564
mMainHandler.postDelayed(new Runnable() {

0 commit comments

Comments
 (0)