File tree 2 files changed +2
-3
lines changed
fragmentation_core/src/main/java/me/yokeyword/fragmentation/queue
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
public abstract class Action {
10
- public static final int BUFFER_TIME = 60 ;
10
+ public static final long DEFAULT_POP_TIME = 300L ;
11
11
12
12
public static final int ACTION_NORMAL = 0 ;
13
13
public static final int ACTION_POP = 1 ;
Original file line number Diff line number Diff line change @@ -58,8 +58,7 @@ private void handleAction() {
58
58
private void executeNextAction (Action action ) {
59
59
if (action .action == Action .ACTION_POP ) {
60
60
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 ();
63
62
}
64
63
65
64
mMainHandler .postDelayed (new Runnable () {
You can’t perform that action at this time.
0 commit comments