Skip to content

Commit

Permalink
兼容华为荣耀手机;Context.startActivity没有FLAG_ACTIVITY_NEW_TASK的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
weishd committed Jun 22, 2017
1 parent ae15c08 commit e570a1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -156,6 +156,7 @@ private void startActivity() {
intent.putExtra(ConstantValue.DATA_STYLE_ID, mStyleResId);
intent.putExtra(ConstantValue.DATA_ANIM_STYLE, mAnimStyleId);
intent.putExtra(ConstantValue.DATA_PERMISSIONS, (Serializable) mCheckPermissions);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivity(intent);
}

Expand Down

0 comments on commit e570a1c

Please sign in to comment.