Skip to content
This repository was archived by the owner on May 19, 2022. It is now read-only.
This repository was archived by the owner on May 19, 2022. It is now read-only.

改进: SegmentFault Android #205

Open
@andyxialm

Description

@andyxialm

产生过程: 几乎任何一个存在跳转至新Activity的Button,都存在快速点击2+次数,可多次跳转,且Activity栈都会产生新实例。
期望结果: 触发多次跳转,应只复用同一份Activity实例。
实际结果: 会触发多个Activity实例压栈。
环境: Android 5.1.1
测试版本: SegmentFault Android 2.9.3

建议解决方法:

  • launchMode: singleTop
  • intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions