Skip to content

Callback mechanism is bound to fail #2

@rburgst

Description

@rburgst

The current design with specifying a callback object is bound to fail upon screen rotation. The proper pattern is to check whether the owning activity implements a specific interface and call that. The fact that fragments and activities are being recreated makes it impossible to store pointers to callback objects.

Try the following

  1. open the date picker and pick a date (remember it)
  2. rotate the screen
  3. press done

Expected: selected date is set
Actual: the old value remains

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