Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:alibaba/ARouter into develop
Browse files Browse the repository at this point in the history
* 'develop' of github.com:alibaba/ARouter:
  fix Postcard addFlags bug
  • Loading branch information
zhi1ong committed Oct 21, 2020
2 parents 862f27d + c46ca43 commit 75c38c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public final class Postcard extends RouteMeta {
private Uri uri;
private Object tag; // A tag prepare for some thing wrong. inner params, DO NOT USE!
private Bundle mBundle; // Data to transform
private int flags = -1; // Flags of route
private int flags = 0; // Flags of route
private int timeout = 300; // Navigation timeout, TimeUnit.Second
private IProvider provider; // It will be set value, if this postcard was provider.
private boolean greenChannel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ private Object _navigation(final Postcard postcard, final int requestCode, final

// Set flags.
int flags = postcard.getFlags();
if (-1 != flags) {
if (0 != flags) {
intent.setFlags(flags);
}

Expand Down

0 comments on commit 75c38c0

Please sign in to comment.