Skip to content

Commit

Permalink
fix #960 queue exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
YoKeyword committed Aug 14, 2018
1 parent 2f6d92d commit b66a4eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

public abstract class Action {
public static final int BUFFER_TIME = 60;
public static final long DEFAULT_POP_TIME = 300L;

public static final int ACTION_NORMAL = 0;
public static final int ACTION_POP = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ private void handleAction() {
private void executeNextAction(Action action) {
if (action.action == Action.ACTION_POP) {
ISupportFragment top = SupportHelper.getBackStackTopFragment(action.fragmentManager);
if (top == null) return;
action.duration = top.getSupportDelegate().getExitAnimDuration();
action.duration = top == null ? Action.DEFAULT_POP_TIME : top.getSupportDelegate().getExitAnimDuration();
}

mMainHandler.postDelayed(new Runnable() {
Expand Down

0 comments on commit b66a4eb

Please sign in to comment.