Skip to content

timer取消后,再调用timer执行任务会异常 #3

Description

@zkywalker

timer.cancel()后是不能调用schedule()的.使用dialog显示时,dismiss()后会onDetachedFromWindowl里执行cancel,然后重新show()就会报错。建议onAttachedToWindow的时候使用新的timer对象

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions